AutoUpdate shutdown function pointer to member function

Discussion to talk about software related topics only.
Post Reply
hector
Posts: 14
Joined: Mon Sep 06, 2010 6:16 am

AutoUpdate shutdown function pointer to member function

Post 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
User avatar
tod
Posts: 587
Joined: Sat Apr 26, 2008 8:27 am
Location: Southern California
Contact:

Re: AutoUpdate shutdown function pointer to member function

Post 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.
Post Reply