Possible Duplicate:
How can I pass a C++ member function to a C API as a parameter
Hi I have class with a C function expecting a call back as follows: void fun_c(void * (*ptr)(void *)).
Now I want to send C++ method to c function, can anyone tell me how to do this:
class ClassA{
method1(){
func(ClassA::func);
}
void * func(void * arg){
}
}
Can anyone will this work.