Advertisement

Window Procedure

Started by March 26, 2000 09:00 PM
0 comments, last by ECKILLER 24 years, 7 months ago
Hi, I''m making some wrapper classes to encapsulate the Win32 Code from my OpenGL code. I was going to just use MFC but I don''t need the entire MFC library so i just though I''d make the classes i needed. Anyways I designed a class COGLWINDOW which does all the windows stuff(bare minimum i need to run opengl under window) and encpsulates it. This class also contains the WindowProcedure function. In my constructor i set up a window its here i get my error: wc.lpfnWndProc = (WNDPROC) this->WndProc; I put the this pointer in just to reiterate that the Wnd Proc is in this class. The error i get is: typecast cannot convert from ''''to'' long c_stdcall *)(struct HWND_*, unsigned int, unsigned int, long)'' ECKILLER
ECKILLER
We already had a nice big discussion on this one today.

Check out the:
passing class::WindowProc to lpfnWndProc
thread in this forum.

This topic is closed to new replies.

Advertisement