Jump to content
  • Advertisement


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


WinProc in Class

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

Hi everyone, I am trying to put my WndProc & MessageLoop in a class. I know there have been many posts about this, and I have seen many examples, but I can''t figure out what I''m doing wrong. Here''s the line that''s screwing me over: wc.lpfnWndProc = WndProc; It says : error C2440: ''='' : cannot convert from ''LRESULT (__stdcall CGLWinGeneric::* )(HWND,UINT,WPARAM,LPARAM)'' to ''WNDPROC'' and when I do wc.lpfnWndProc = (WNDPROC) WndProc; Then I get : error C2440: ''type cast'' : cannot convert from ''overloaded-function'' to ''WNDPROC'' Ack! I don''t know how to fix this. Any thoughts?

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!