NetBurner Community Forum

A community of NetBurner users gathering to discuss NetBurner hardware, software, design and projects
It is currently Sat May 25, 2013 11:22 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: AutoUpdate shutdown function pointer to member function
PostPosted: Wed Apr 18, 2012 12:22 am 

Joined: Mon Sep 06, 2010 5:16 am
Posts: 14
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


Top
 Profile  
 
 Post subject: Re: AutoUpdate shutdown function pointer to member function
PostPosted: Wed Apr 18, 2012 4:37 pm 
User avatar

Joined: Sat Apr 26, 2008 7:27 am
Posts: 497
Location: Southern California
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group