Hi Robin,

On Tue, 26 Sep 2006, Robin Steinke wrote:

> Carsten Neumann schrieb:
>
>> unfortunately no, but could you post your code or attach your .h/.cpp 
>> file, please ?
>> 
>>      Thanks,
>>              Carsten
>
> sure, should have done that in the first place. here it is,

you can't pass a member function to a global function like this, as member 
functions have a first implicit parameter pointing to the class instance 
(this). Plus I don't think you could pass a private function in such a 
way. Either you declare the function as static (and public), or you can 
have a global function wrapper declared as a "friend" function which gets 
the pointer to your class as void* (you'll have to use a different functor 
though which takes a void* parameter) and calls your (possibly private) 
function or I think there was some other way that I don't remember right 
now. :-)

HTH,
        Akos


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to