Archived

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

abdulla

from: pointer to member, to: pointer to function

Recommended Posts

with WNDCLASSEX and the lpfnMsgProc callback you have to pass a pointer to function to the struct, how do i use a pointer to member in place of that? i tried using std::mem_fun but it was unable to deduce a template argument, any suggestions?

Share this post


Link to post
Share on other sites
search the board for a detailed explaination, but you can''t use a member funtion per sa. You need to use a static member, and pass the this pointer into the windows creation funcion, then hide it in the GWL_USERDATA portion of the window.

Magmai Kai Holmlor

"Oh, like you''ve never written buggy code" - Lee

"What I see is a system that _could do anything - but currently does nothing !" - Anonymous CEO

Share this post


Link to post
Share on other sites