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!