• Advertisement

Archived

This topic is now archived and is closed to further replies.

Functions in classes

This topic is 5947 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

My problem is the following: In a DLL, I have the function int get_proc(void *); I pass a local function from another DLL to it and that works fine. But if I try to pass a function inside a class, I get an parameter conversion error like <'''' cannot be converted ...>. Is there any way to get this working?? Darkening

Share this post


Link to post
Share on other sites
Advertisement
The syntax for pointer to class member functions and pointer to functions are different.

Check out the usenet C++ Faq for class function pointers.

Share this post


Link to post
Share on other sites

  • Advertisement