Results 1 to 3 of 3

Thread: Visual C: Console Application and OpenGL

  1. #1
    Guest

    Visual C: Console Application and OpenGL

    Hi, I want to know if is possible create an openGL project without use "console application". I don't want use the console of Dos, I would want use directly the openGl's program...I must use "win32 application"? I try but, I don't use WinMain, so thi s method doesn't ok!!
    Can you help me?

    P.S
    Excuse for my bad english!!

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: Visual C: Console Application and OpenGL

    You use the /subsystem and /entry likner options to control the console and entrypoint of the program.

    /subsystem:console starts the program with a console, /subsystem:windows starts it without console.
    /entry:mainCRTStartup starts the program in the function main(), and /entry:WinMainCRTStartup starts it in WinMain().

    Choose the combination of the two that you want. You can put them in the project properties, in the "additional options" or whatever it's called in the linker options.

  3. #3
    Guest

    Re: Visual C: Console Application and OpenGL

    Perfect
    Using /entry:mainCRTStartup /subsystem:windows in the project options I obtain that I want!!
    Bye

Similar Threads

  1. Creating a GLUT window using a console application
    By Psiborg in forum OpenGL: General
    Replies: 1
    Last Post: 06-16-2006, 11:06 PM
  2. Can opengl work in Win32 console application?
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-25-2004, 12:23 AM
  3. Visual C++ and the Console Window
    By kiloKyle in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 09-10-2001, 05:50 AM
  4. Console application?
    By Platinum in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 07-12-2001, 10:35 PM
  5. Add Color in Win32 Console Application
    By Acer722 in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 06-26-2001, 08:38 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