Results 1 to 5 of 5

Thread: console window

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2001
    Location
    New York, NY, US
    Posts
    11

    console window

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

  2. #2
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: console window

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

  3. #3
    Member Contributor
    Join Date
    Oct 2000
    Location
    london, england
    Posts
    76

    Re: console window

    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
    Later

    Zee

  4. #4
    Member Contributor
    Join Date
    Oct 2000
    Location
    london, england
    Posts
    76

    Re: console window

    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
    Later

    Zee

  5. #5

    Re: console window

    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);

    // ...

Similar Threads

  1. Console window
    By KAE in forum OpenGL: Windows
    Replies: 2
    Last Post: 01-12-2006, 03:57 AM
  2. Disable console window ?
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-02-2004, 09:15 AM
  3. Getting rid of GLUT console window
    By harsman in forum OpenGL: macOS
    Replies: 1
    Last Post: 05-13-2002, 04:26 PM
  4. Visual C++ and the Console Window
    By kiloKyle in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-10-2001, 05:50 AM
  5. Get rid of console window with glut.
    By Humus in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 02-21-2001, 06:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean