|
-
January 9th, 2011, 05:17 PM
#1
Callback (TIMERPROC) to a c++ class function ??
Hi there,
Just wondering if its possible in any way to give a function pointer from a class to a C callback.
Ex: I got the class "Animation" having the member function "Draw()":
Now there the SetTimer() APi from Window, which requires a callback function (function pointer) to execute each time the timer times-out.
Could it be possible to pass the a Draw function from an INSTANCIATED "Animation" class to the SetTimer() function ??
Ex : SetTimer(...,...,...,&myAnimationInstance.Draw);
Tags for this Thread
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
|