只需要在任意头文件中加上如下内容:#pragma comment( linker, "/subsystem:windows /entry:mainCRTStartup" ) Categories: 编程技术