![]() |
#2
debroa7232011-04-22 22:51
|
#include <windows.h>
int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPreinstance,LPSTR lpCmdLine,int nCmdshow)
{
MessageBox(NULL,"一个简单的Win32应用程序","例9.1",MB_OK);
return 0;
}
编译的时候会出现这个错误
--------------------Configuration: excise - Win32 Debug--------------------
Linking...
LIBCMTD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/excise.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
求教啊~