Jump to content
  • Advertisement

Archived

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

abdulla

from: pointer to member, to: pointer to function

This topic is 6152 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
Advertisement
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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!