Skip to main content
gamedev.net
🔒 Locked

Embedded WndProc

Started by jonbell 0 replies 550+ views
Original Post
jonbell
jonbell
I want to make a windows procedure a method inside an object so in my class def i have : class CRenderWin { public: // constructor CRenderWin(); // Destructor ~CRenderWin(); // the windows procedure LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); blah blah } the i try and set the procedure so : CRenderWin a; wndclass.lpfnWndProc = a.WndProc; i get this error : error C2440: ''='' : cannot convert from ''long (__stdcall CRenderWin::*)(struct HWND__ *,unsigned int,unsigned int,long)'' to ''long (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)'' is it possible to do what i am trying to do? If so how?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.