Original Post
I''ve already googled and checked function-pointer.org. Now that that''s out of the way, to the question.
Is it possible to pass a member function (C++) to a C-style function that has a C-style function pointer as a parameter. Here is some code to simplify:
void SetFP((int (*fp)(void *));
class foo
{
public:
int bar(void *);
void foobar() { SetFP(bar); } // How can I do this?
}
So far I''ve tried a lot of different syntax approaches and none have worked. Has anyone else encountered this problem or knows the answer to it?