Page 1 of 1

AutoUpdate shutdown function pointer to member function

Posted: Wed Apr 18, 2012 1:22 am
by hector
Hi folks,

I'd like to implement the Autoupdate shutdown callback to be
attached to an C++ member function of a class (instead of an ordinary C function).
How can I accomplish this task without any dirty workarounds? Thanks in advance.

Greetings

Re: AutoUpdate shutdown function pointer to member function

Posted: Wed Apr 18, 2012 5:37 pm
by tod
I don't know the specifics of the AutoUpdate shutdown function but you may want to see the wiki article on using C++ member functions where the OS expects a C function. In general you need to do some work around if you want to pass a non-static class member function where a normal C function is expected.