Me and my colleagues are working on a project right now, where we are supposed to connect our C++ program to a C program we haven't written.
More specific: we "just" have to call a C function with serveral parameters.
The problem is now, that 3 parameters have to be function pointers to functions already existing in our C++ code and which are all functions of the same class...
How are we able to declare/cast/wrap/etc those pointers?
We already tried it for hours without success.
Our code is furthermore too complex to rewrite it in C...
A C function can accept a pointer to a non-member function or to a static member function, but it can't accept a pointer to a non-static member function (such pointer doesn't even hold an address)