6 Feb
2009
6 Feb
'09
7:49 a.m.
Hello, I have a problem using boost::bind (version 1.34.1). I don't know whot I make wrong but I think that I can use it in my case. Or I'm wrong? I use VS2005. in some external header file I have the declaration typedef void (* FUNCTION)(int ,void *); void SetCallback(FUNCTION cb); Now I want to call a function inside my class. Maybe with bind? I have tested the following: SetCallback(boost::bind<void>(boost::mem_fn(&Program::OnCallback),this,_1,_2)); but this does not work..have anyone an hint how I can do that? Regards Hansjörg