PDA

View Full Version : Execution causes two Windows to pop up



05-28-2002, 03:11 AM
Hi,

Im using the VC++ environment to code OpenGL. But everytime I Execute my program, The OpenGL output appears in a "console" and another DOS window opens too. What should I do only to get the OpenGL output window and not the other DOS Window ?

Maria

GiMiC
05-28-2002, 04:28 AM
This usually happens when using GLUT to make OpenGL programs. If you are using this then the only way i know of is to write all the code from the ground up. Go to http://nehe.gamedev.net or http://www.gametutorials.com to get an OpenGL skeleton program which will allow you to just write your GL code without worrying about creating windows or any of that.

bakery2k
05-28-2002, 05:51 AM
There is a way to prevent the console window coming up with GLUT. Although I don't know what it is, if you dont want to use win32 code, it is possible.

Old GLman
05-28-2002, 10:31 AM
Hi, simple solution to this one. Its in the FAQ http://www.opengl.org/discussion_boards/ubb/biggrin.gif. Go to the Project Menu -> Settings -> Dialog -> Select the Link Tab. In the projet options edit box add /SUBSYSTEM:WINDOWS/ENTRY:mainCRTStartup to the end.

Old GLman