I have an class with instance functions (or methods?). From within an instance, I try to pass pointers to those functions to a library. The library expects static functions
you should have a static method
and an instance
(possibly static) to call a member function of instance
from static
function
Something like this:
//static method
void MyClass::myCallback()
{
static MyClass instance; //or you can store your in instance in some Singleton, or
//possibly create a temporary
instance.nonStaticMethod();
}