glut in vc++

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).]

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.

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.

what header(.h) file is that freeconsole function in?

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.

where is there stuff about getting rid of the console in the faq’s?
i can’t find it

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

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?

thank you very much for all your help ppl