PDA

View Full Version : console window



newmannium
03-07-2001, 12:40 PM
Can anyone tell me how to make the "Command Prompt" window disappear if I use
glut with msvc++ 6.0?

zed
03-07-2001, 03:34 PM
check the faq (link on bottom right) www.opengl.org (http://www.opengl.org) ie this site

ZeeBoy
03-09-2001, 12:00 PM
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

ZeeBoy
03-09-2001, 12:11 PM
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

Nocturnal
03-09-2001, 12:20 PM
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);

// ...