Im having a simple problem that I cant seem to get aroudn
Im trying to register my windows procedure function in my class.
Ive basically ripped the nehe code and tried to put it into a class.
wc.lpfnWndProc = (WNDPROC) (TemplateProc); // TemplateProc Handles Messages
but I get a casting error that doesnt make much sence to me as everyhitng looks like it should be in place !!!
error C2440: ''type cast'' : cannot convert from '''' to ''long (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,long)''
None of the functions with this name in scope match the target type
the TemplateProc is declared in my header and is how a WNDPROC should be declared !!
i.e. LRESULT CALLBACK TemplateProc (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
cheers people