Original Post
Hi I'm trying to move all my functions for creating OpenGL windows into one class, but I've hit a problem. In the function CreateGLWindow it has the line: wc.lpfnWndProc = (WNDPROC) WndProc; // WndProc Handles Messages Which used to point to: LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM) in the same file but as I've moved them all to a class I need it to point to: LRESULT CBaseCode::CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); With the current code the compiler gives me the error: CBaseCode.cpp: In member function
BOOL CBaseCode::CreateGLWindow(char*, int, int, int, bool)': CBaseCode.cpp:38: no matches converting function WndProc' to type `LRESULT (*)(struct HWND__*, unsigned int, unsigned int, long int)' CbaseCode.h:13: candidates are: LRESULT CBaseCode::WndProc(HWND__*, unsigned int, unsigned int, long int) Any help would be greatly appreciated. [smile]