Ljdawson
Ljdawson

Reputation: 12229

Hide command line / shell when using GLUI

I'm working on an openGL project and have chosen to use GLUI for my interface. Was just wondering if anyone knows how to hide the command line / shell when running?

Cheers!

Upvotes: 0

Views: 443

Answers (1)

Tommy Andersen
Tommy Andersen

Reputation: 7220

If you are using Visual Studio and C++ on Windows you can use the solution posted in the GLUT FAQ, question 36:

A36: Try using the following Microsoft Visual C compiler flags:

/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup

These are linker options... if main or wmain are defined, MSVC build a CONSOLE app by default; hence the need for /SUBSYSTEM:WINDOWS. if /SUBSYSTEM:WINDOWS is defined, MSVC expects WinMain or wWinMain to be defined; hence the need to /ENTRY:mainCRTStartup (eg the entry point is the usual C main).

Upvotes: 1

Related Questions