|
-
January 21st, 2006, 04:52 AM
#1
timeSetTimer Callback Issues
I have a compilation error I can't figure out. I am calling timeSetTimer from a member function within a class. The callback function is also a member of the class.
When I compile this statement:
timeSetEvent(iDelay, 0, &wait, NULL, TIME_ONESHOT);
I get:
error C2276: '&' : illegal operation on bound member function expression
When I compile this statement:
timeSetEvent(iDelay, 0, &FOO::wait, NULL, TIME_ONESHOT);
I get:
error C2664: 'timeSetEvent' : cannot convert parameter 3 from 'void (__stdcall FOO::*)(unsigned int,unsigned int,unsigned long,unsigned long,unsigned long)' to 'void (__stdcall *)(unsigned
Any ideas?
Thanks!
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
|