PDA

View Full Version : glut in vc++



jono_123
07-17-2002, 09:22 PM
hi there
i used to use glut with gcc and i typed -mwindows in the complier options and now i am using vc++6 i start with a console application and glut makes the windows but i want to get rid of the dos box thingi
how do i do this??
thanx

[This message has been edited by jono_123 (edited 07-19-2002).]

ioquan
07-17-2002, 10:09 PM
I dont think you can get rid of it, but I only used glut for about 2 minutes before I decided it sucked.

You may want to consider SDL. Go to www.libsdl.org. (http://www.libsdl.org.)

Deiussum
07-18-2002, 04:35 AM
There are a couple of ways to get rid of it. One of them is to add a command-line parameter to the compiler options. This way is documented in the faq. (Check the drop down box with the Quick Links for the faq.)

Another way is by using the API function FreeConsole.

jono_123
07-18-2002, 09:39 PM
what header(.h) file is that freeconsole function in?

JML
07-18-2002, 09:55 PM
Originally posted by jono_123:
what header(.h) file is that freeconsole function in?
From MSDN Library:


Header: Declared in Wincon.h; include Windows.h.

jono_123
07-18-2002, 10:02 PM
where is there stuff about getting rid of the console in the faq's?
i can't find it

07-18-2002, 10:47 PM
Originally posted by jono_123:
where is there stuff about getting rid of the console in the faq's?
i can't find it

Faqitem: 3.090 How can I make glutMainLoop() return to my calling program?
At: http://www.opengl.org/developers/faqs/technical/glut.htm#glot0100

07-18-2002, 10:49 PM
Originally posted by jono_123:
where is there stuff about getting rid of the console in the faq's?
i can't find it

Sorry, got that all wrong! My clipboard didn't contain what I thougth.

Here is the correct one:
3.100 How do I get rid of the console window in a Windows GLUT application?

jono_123
07-18-2002, 10:54 PM
thank you very much for all your help ppl http://www.opengl.org/discussion_boards/ubb/smile.gif