Jump to content
  • Advertisement


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


from: pointer to member, to: pointer to function

This topic is 6514 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

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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!