2010年8月10日 星期二

使用glut時,不顯示控制台視窗

prevent opening a console window in addition to your GLUT window when it is run

in vc
menu option ( Project → Properties )
From the Configuration: list box, select All Configurations.
select the Linker subtree and then Command Line option in the left pane. Then add the following code to the Additional Options: text box
Copy & Paste: /SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup

in mingw
click on Project and go to Project Options.
Click on the Parameters tab.
On the 3rd box, Linker, you will need to add in the following code to your project
-Wl,--subsystem,windows

沒有留言: