Original Post
I'm writing a program that uses opengl but i got a problem: I got a class which initialises the opengl window and i got the WndProc in another class. I use this:
wc.lpfnWndProc = (WNDPROC )p_trendering->p_tengine->WndProc;
To point to:
LRESULT CALLBACK engine::WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
which is declared static in the class. But in the WndProc function i can't call any member of the engine class. Like:
tengine->myfunction();
where tengine is an instance of the class and myfunction a function. Any suggestions? [Edited by - Aidamina on September 12, 2005 6:03:27 AM]