|
-
Jul 1st, 2002, 04:46 PM
#1
C++ Function pointer
I have class thats called game. In the class theres a pointer called m_pDisplay. Its a pointer to a function in the class game. Then another class, CWindow, has a pointer to a game class. In the window class, how do i call the pointer in the game class?
I thought something like... m_pGame is the game pointer.
Code:
m_pGame->m_pDisplay()
But nope.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|