Add the following code to main.cpp to hide the console in windows
#pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"")
本文介绍了一种通过在C++程序中使用预处理器指令来隐藏Windows应用程序控制台窗口的方法。通过在main.cpp文件中加入特定的链接器注释,可以在运行时避免控制台窗口的显示。
Add the following code to main.cpp to hide the console in windows
#pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"")
1620
3万+