Currently I have a class of this kind, shortened for simplicity:
class MyClass {
public:
MyClass();
void* someFunc(void* param);
}
There is a round about way of doing it. Since C++ names are mangled you can't directly use it for non-static functions.. however since non-static functions have the same signatures as C functions, you can directly use them as callbacks. So for non-static functions, you can have static function wrappers. This page explains this approach in detail.