在stdafx.h 下添加如下代码
#ifdef _DEBUG #pragma comment( linker, "/subsystem:console /entry:wWinMainCRTStartup" )// #endif