Original Post
This is a rather silly question to most people. While I have written a 3d rendering engine and have done lots of things in C++, I am not all that knowledgeable in C++ at times (unfortuantely). Which leads to my question: I am setting up a window to render to. This, of course, requires me to define a WNDCLASSEX structure. In that structure is the lpfnWndProc value which points to the message handling function of my engine. Previously, I did not wrap my windows function up into a CWindow type class. I did this time. And I seem to be having a hard time assigning my event handler method to the WNDCLASSEX structure. This is how it is defined in my Window class. LRESULT WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); I attempt to assign it in my CreateD3DWindow method: windowClass.lpfnWndProc = cWndProc; And I end up with the error message: "error C2440: '=' : cannot convert from 'LRESULT (__thiscall D3Dwindow::* )(HWND,UINT,WPARAM,LPARAM)' to 'WNDPROC'" I am sure that this is really stupid on my part. I just want to give all of the details for you all. Thanks in advance.