关于控制台程序和Win32程序
- 1 隐藏控制台命令窗口
#ifdef _MSC_VER #pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" ) #endif
- 2将控制台入口改为Win32入口
#ifdef _MSC_VER #pragma comment(linker, "/entry:WinMainCRTStartup /subsystem:windows") #endif
#ifdef _MSC_VER #pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" ) #endif
#ifdef _MSC_VER #pragma comment(linker, "/entry:WinMainCRTStartup /subsystem:windows") #endif