先看看正确的声明
int WINAPI
WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR l pCmdLine, int nShowCmd );
int WINAPI
wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LP
WSTR lpCmdLine, int nShowCmd );
int WINAPI
_tWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LP
TSTR lpCmdLine, int nShowCmd );
再看看你的
WINAPI
WinMain(HINSTANCE hNowInstance, HINSTANCE hPrevInstance, P
TCHAR lpCmdLine, int nShowCmd)
牛头不对马嘴,四不像呀
程序代码:
#include <windows.h>
#include <tchar.h>
#define WinBegin(...) WINAPI _tWinMain( HINSTANCE hNowInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nShowCmd )
int WinBegin(你声明了接受参数,却不使用)
{
return 0;
}