|
C++ Pointer Functions
I was just wondering how you would get a pointer to a function in C++.
Let me clarify:
I checked my MSDN cd. Can''t find it. Anyone know how?
------------------------------------------------------------I wrote the best video game ever, then I woke up...
All I get is 0x000000.
I can''t get it to put the memory address in the pointer function.
I can''t get it to put the memory address in the pointer function.
------------------------------------------------------------I wrote the best video game ever, then I woke up...
thats weird, what TV posted is accurate. make sure the arg signature and return tryp matches, ie:
|
Make sure you don''t have:
func = AFunction(); // will execute AFunction
but
func = AFunction; // will take the address of AFunction
func = AFunction(); // will execute AFunction
but
func = AFunction; // will take the address of AFunction
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement