Original Post
i have this line of code, i'm trying to create a general class ( calles Framework ) to construct a win32 window. wc.lpfnWndProc = &Framework::WndProc; but i get this casting error how do i correct it. error C2440: 'type cast' : cannot convert from 'LRESULT (__stdcall Framework::* )(HWND,UINT,WPARAM,LPARAM)' to 'WNDPROC' There is no context in which this conversion is possible thanks