4

Possible Duplicate:
Hide console of Windows Application

so i installed opengl for visual studio by lazyfoo's tutorial.
when i run the project i get 2 menus.
one is the old fashion console window and one is a game window.
i want to start my project without the console window. how am i supose to achiev this?
In lazyfoo he tells me to change my linker/SubSystem settings to windows so the console doesn't pop up but when i do this i get this freaky error.
Is there a better way to prevent the console window from poping up?

Community
  • 1
  • 1
user1680034
  • 93
  • 1
  • 4
  • 9

3 Answers3

1

Here's something that I hope helps! : Making my console application invisible

Does invisible count as not there?

Community
  • 1
  • 1
jdero
  • 1,797
  • 3
  • 21
  • 36
1

Your question is answered in the tutorial.

Under Linker in the System menu, set the subsystem. I recommend setting it to windows if you don't want console output, and console if you do want console output.

Andriy
  • 8,486
  • 3
  • 27
  • 51
1

I answered it here:

https://stackoverflow.com/a/6882500/524368

Full quote following:


In the project build linker options set

/SUBSYSTEM:windows
/ENTRY:mainCRTStartup

Or use the following #pragma in the source file with the int main(...)

#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
Community
  • 1
  • 1
datenwolf
  • 159,371
  • 13
  • 185
  • 298