Ive been trying to get this to work but cant. Im trying to make a class Window that encapsulates creating a window, sorta like MFC's CWindow, but i keep getting a problem about WndProc can someone please give me an example of this or point me to a tutorial. I have no problem coding Win32 in straight C but i want to use C++ classes.