console window

Can anyone tell me how to make the “Command Prompt” window disappear if I use
glut with msvc++ 6.0?

check the faq (link on bottom right) www.opengl.org ie this site

try this

freeconsole();

OR

freeConsole();

OR

Freeconsole();

OR

FreeConsole();

its been a while since ive used it so have forgoten the capitalisation but one of the above should work.

Zee

I tried it out again and it is

FreeConsole();

stick that anywhere in your initialisation.
Take note that when the programe is run in VC++ that the console window will still be visable. However if you run your exe the console window will disapear.
I think this hase something to do with the
“press any key to continue” at the end of ever console app compiled in VC++

Zee

You can also just create a pure Win32 program with GLUT. Here is an example:

int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
int argc = 1;

// Initialize GLUT
glutInit(&argc, &lpCmdLine);
glutInitWindowSize(256, 256);
glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE);

    // ...