2012年11月7日 星期三

error C2731: 'WinMain' : function cannot be overloaded

Error message as title.

My code as below.
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)

{
    bala...bala...
}

To fix the issue, change code to
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
{
    bala...bala...
}

沒有留言:

張貼留言