Results 1 to 4 of 4

Thread: how to make the dos window go away

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2003
    Posts
    2

    how to make the dos window go away

    I know there has to be a way to get rid of the dos window using open gl. Do I have to use a direct x call or is there a way to do it in opengl? It is fine for debuging, but for a finished product it needs to go. Thanks
    SD

  2. #2
    Member Newbie
    Join Date
    Jun 2003
    Posts
    32

    Re: how to make the dos window go away

    In MSVC, compile the project as a Win32 app instead of a console app. You will have to define WinMain instead of main.

    A Win32 App can have a console but the app starts off without one. A dos app simply has the console window opened at startup.

    An alternative is to use FreeConsole() (defined in wincon.h) to close the dos window but there may be a momentary flash of the console window at startup. The Win32 project is the method of choice.

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2003
    Location
    Kent, WA, USA
    Posts
    21

    Re: how to make the dos window go away

    If you're using glut and Visual C++, which you may not be, in which case I look like an ass...

    Create a Win32 Application project. Then select project->settings from the main menu, select the "Link" tab from the dialog box, select "Output" from the "Category" combo box, and in the "Entry-point symbol" textbox type "mainCRTStartup".

    If you'd rather not create a new project, you can convert an existing console project to Win32 by going to project->settings, select the "Link" tab, and in the "Project options" textbox replace "subsystem:console" with "subsystem:windows". Then add "mainCRTStartup" in the "Entry-point symbol" textbox as before.

    Paraphrased from http://www.lighthouse3d.com/opengl/glut/

    [This message has been edited by Radish (edited 10-16-2003).]

  4. #4
    Guest

    Re: how to make the dos window go away

    For mingw console app add -mwindows linker option

Similar Threads

  1. How do I make a seperate Window?
    By Sephis in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-17-2005, 03:14 AM
  2. How do I make a seperate Window?
    By Sephis in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 04-16-2005, 08:33 PM
  3. How to make Window look like skin/3d
    By eddiehsu in forum OpenGL: Windows
    Replies: 2
    Last Post: 03-06-2004, 01:56 AM
  4. How to make one window for dual displays?
    By linux-nerd in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 12-06-2002, 09:43 AM
  5. Make an OpenGL area in a window(using GLUT)
    By coobr01 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-02-2001, 09:20 AM

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