主题:求助
#include<windows.h>
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance, LPSTR lpCmdLine,int nCmdShow)
{
MessageBox(NULL,"你好,我的Visual C++世界!","问候",0);
return 0;
}
为什么这个程序链接的时候,会出现错误(如下)
--------------------Configuration: Ex_HelloMsg - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Ex_HelloMsg.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
Ex_HelloMsg.exe - 1 error(s), 0 warning(s)
谢谢!
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance, LPSTR lpCmdLine,int nCmdShow)
{
MessageBox(NULL,"你好,我的Visual C++世界!","问候",0);
return 0;
}
为什么这个程序链接的时候,会出现错误(如下)
--------------------Configuration: Ex_HelloMsg - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Ex_HelloMsg.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
Ex_HelloMsg.exe - 1 error(s), 0 warning(s)
谢谢!