Search:

Type: Posts; User: kovacsbv

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,405

    Very good, Thanks.

    Very good, Thanks.
  2. Replies
    2
    Views
    1,405

    Identifying a C++ idiom

    I am reading some code and can't identify what part of C++ this idiom is (that :fgl(NULL) that's in red below by the image::image definition).

    If somebody can give me the magic phrase that I can...
  3. Replies
    4
    Views
    3,773

    Thanks, Elyisa. Putting 'static' in front of...

    Thanks, Elyisa.

    Putting 'static' in front of the function in the class definition was what I was looking for.

    One thing to note for anybody having the same question: if you declare the member...
  4. Replies
    4
    Views
    3,773

    Ah, yes. You need the object pointer now, don't...

    Ah, yes. You need the object pointer now, don't you.

    So, I wrote a small wrapper outside of Maze:


    Uint32 Maze_TimerCallback(Uint32 interval, void *maze) {
    return ((class Maze...
  5. Replies
    4
    Views
    3,773

    Callback into a class member function

    Hi,

    I know C pretty well, but now am learning C++.

    I am writing a maze program that wants to have a Windows (SDL) timer call back to a
    member function in the Maze class.

    The compiler is...
  6. Replies
    6
    Views
    1,251

    Thanks, Gentlemen, this helped a lot. I have a...

    Thanks, Gentlemen, this helped a lot.

    I have a new question about callbacks into a class, but I'll start a new thread for that.

    kovacsbv
  7. Replies
    6
    Views
    1,251

    If you could humor me a little farther and give...

    If you could humor me a little farther and give advice, I'd appreciate it.

    Now for actually using C++ features.

    I assume the maze setup macro would normally be put in the constructor instead of...
  8. Replies
    6
    Views
    1,251

    Doh! Thanks for that second (and third) pair...

    Doh!

    Thanks for that second (and third) pair of eyes.

    I had my mind so wrapped around this new foray into OOP (I'm going from C to C++ now) that I overlooked the obvious.

    I included stack in...
  9. Replies
    6
    Views
    1,251

    Stack of vectors in a class

    Hi, all:

    I'm writing a maze program and need a stack of integer vectors (just x and y) in the Maze class.

    The problem is that the compiler isn't liking the std::stack. (See the red part in...
Results 1 to 9 of 9