在stdafx.h中添加
//#pragma comment( linker, "/subsystem:console /entry:wWinMainCRTStartup" )
//#pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup") // 设置连接器选项
#pragma comment( linker, "/subsystem:console /entry:WinMainCRTStartup" )
printf("%02X",wBuffer[i]);//打印16进制数