CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: DerShodan

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    664

    Re: Problem Loading Headers

    Thanks a lot, that worked.
    But I must honestly say, that I stil have no idea why it behaves like that.

    Anyways, I can continue working at least, so thanks a mill!
  2. Replies
    2
    Views
    664

    Problem Loading Headers

    Hey!

    im trying to save pointers to collection objects in a Singleton class, in order to be able and access those Collections from everywhere in my application.

    Problem im stumbling into is,...
  3. Replies
    2
    Views
    2,003

    Re: Error C2248 .. please help

    AIIIIIIIIIIIIIIII

    Thank you!! xD
  4. Replies
    2
    Views
    2,003

    Error C2248 .. please help

    Hey there!

    Im implementig inheritance in my current project and end up with a the C2248 error.

    Relevant Code:

    First my Tower.h from which I want to inherit a class "Plasmatower"

    ...
  5. Re: unexpected result incrementing an Integer

    Resolved: I forgot to Compile the Application for Debug... Sorry for bothering you ...
    god am I stupid xD
  6. unexpected result incrementing an Integer

    Hey there!

    Im using a Singleton class in order to control certain things in an application. There is a method "triggerNextWave()"

    setting a breakpoint at the line
    void triggerNextWave() {...
  7. Thread: C++ Or Java?

    by DerShodan
    Replies
    15
    Views
    1,613

    Re: C++ Or Java?

    2 Points:

    1. Learning Java for sure is easier than learning C++, because C++ lets you do a lot of ugly things, that would be impossible in Java for safety reasons.
    The point is though, that once...
  8. Replies
    7
    Views
    1,017

    Re: std::vector.erase() deletes what?

    No, it was not my intention, to create the Entity reference within the Constructor.

    I declare the Reference within the header file and afaik references must always reference something. Thats why I...
  9. Replies
    7
    Views
    1,017

    Re: std::vector.erase() deletes what?

    Actually while writing the comment, you just quoted, I thought of just that :) Ill do it, but it rises another question, that I completely forgot to ask:

    Is there a safe way to test if a Pointer...
  10. Replies
    4
    Views
    793

    Re: Overwriting Objects... Mem Leak?

    Well thanks for the replies.

    The class Vector3 is part of the Ogre 3D engine, and I would expect this to be implemented correctly. Thanks for your answers!
  11. Replies
    7
    Views
    1,017

    std::vector.erase() deletes what?

    There is a class "Example"...


    Class Example {
    private:
    Entity entObj;
    Entity* entPtr;
    Entity& entRef = Entity(x, y, z);

    public:
  12. Re: How to create different char[] dynamically

    Thanks! sprintf() is doing just fine
  13. How to create different char[] dynamically

    Hey there!

    For dynamic naming of Entities, I require a char[] to be created including an integer.
    For each instance that is created, there has to be a new name. The names should be something...
  14. Re: Default constructor not being recognized

    I had the very same problem just a few days ago... Propably every C++ learner eventually falls into this trap. I wonder how often you solved this issue, LaserLight :)
  15. Replies
    4
    Views
    793

    Overwriting Objects... Mem Leak?

    Hey there!

    Simple question:

    private:
    Vector3 destination;
    ...
    void Entity::setDestination(const Vector3& dir) {
    destination = dir;
    }
  16. Replies
    10
    Views
    977

    Re: Plzz Help me In C++. Its Very Important

    Little offtipic (apologies for that), but what happens if you lose the bet?

    Besides if you want help I would advise you to add a lot of details to what you actually want to achive. Even if I had...
  17. Replies
    11
    Views
    1,076

    Re: Error I can't explain

    Thank you Paul. This is what I would call "a Push in the right Direction" :)

    Kind Regards,
    DerShodan
  18. Replies
    11
    Views
    1,076

    Re: Error I can't explain

    So as soon as an object of a class is created, all member variables are instantiated? It is not possible to just keep a variable name of a specific type (I was going to say "reference" here... but on...
  19. Replies
    11
    Views
    1,076

    Re: Error I can't explain

    Youre right, i have Java background, and im trying hard, not to mix up things :)

    However, it seems to me that


    Mov_Vec mob;already creates the Object with the default constructor. This is...
  20. Replies
    11
    Views
    1,076

    Re: Error I can't explain

    but i'm just declaring the name within the class... or is there already an object created?
  21. Replies
    11
    Views
    1,076

    Error I can't explain

    Hey there!

    This issue is so imple i am ashamed to have to post it here... but I just dont find the mistake.
    I have a header file that directly implements all the Methods.
    The class defined in...
  22. Replies
    31
    Views
    3,252

    Re: Object creation and Pointers

    Well guys, I must admit, that most of what you continued discussing after I left work yesterday, I dont't really understand.
    But one thing about Java from my POV:

    New Programmers are tougth JAVA...
  23. Replies
    31
    Views
    3,252

    Re: Object creation and Pointers

    thanks a mill!

    Best wishes from Vienna,
    Christoph
  24. Re: Dynamic Object creation (Warning: im from Java ...)

    Yes it's a duplicate that magically apears several hours after I posted it. Sorry for being so impatient :)
    Laser: thanks
    Everyone else willing to help: Consider this issue answered. :)
  25. Replies
    31
    Views
    3,252

    Re: Object creation and Pointers

    Ok... then would you please tell me how to create an object on the stack, without using "new"?
    Afterall my attempt, using brackets, resultet in accidentially defining methods as it seems... (see 1....
Results 1 to 25 of 28
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured