0
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,nShowCmd)
{
MessageBox(NULL, L"Hello World!", L"Just another Hello World program!", MB_ICONEXCLAMATION | MB_OK);
return 0;
}
通過教程學習C++入門知識,無法獲得第一個hello world示例進行編譯。LNK2019:無法解析的外部符號_main在函數中引用__tmainCRTStartup
使用visual studio express 2012.我所做的全部工作就是創建一個新項目並將其複製到其中,以取代tmain函數。
請問有誰知道如何解決這個問題?
[嘗試此線程](http://stackoverflow.com/questions/4845410/error-lnk2019-unresolved-external-symbol-main-referenced-in-function-tmainc?rq=1) – ben4808