   Open a window without winmain
  I obviously dont know enough about windows api I have been trying for weeks now to do this without success. Can someone show me or point me to a way to open a opengl window without using winmain.Thank you   
  Do you mean a console application? It's really no different to doing it from windows application, you just need to call GetModuleHandle(NULL) to get your HINSTANCE instead of using the one that's passed in to WinMain.Perhaps you can post the code that you've got so far and we can see what you're doing wrong.   ;  You want an OpenGL window without writing all the messy Win32 API crap to create an maintain a window?Use GLUT.Its really simple. Google for "GLUT Tutorial".Or you can check out my small GLUT demo here;  Another alternative for creating a window with out having to use the Windows API is SDL. There are a several tutorials you can find on that site, as well as lots of documentation including a wiki. I haven't used it myself in a while, but I remember it cutting down the ~100 line Windows API code for setting up a window to ~10 lines.   