• Advertisement

Archived

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

WinProc in Class

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

  • Advertisement