Removing console window for Glut/FreeGlut/GLFW?

后端 未结 8 671
醉话见心
醉话见心 2021-02-03 13:42

Under Visual C++, I have played around with Glut/FreeGlut/GLFW. It seems that everyone of these projects adds a CMD window by default. I tried removing it going under:

8条回答
  •  北恋
    北恋 (楼主)
    2021-02-03 14:02

    Non-console Windows applications use the WinMain() entry point convention. Your Glut examples probably use the standard C main() convention.

    If you want a quick fix just for the demo app, the WinAPI function FreeConsole() might help.

    MSDN: http://msdn.microsoft.com/en-us/library/ms683150(v=vs.85).aspx

提交回复
热议问题