i am having a problem linking this code can anyone tell me what is wrong
----begin file
Code:
#include<windows.h>
INT WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd){
MessageBox(NULL,"Welcome to my first Win32 App!!!",
"Hello",MB_OK);
return 0;
}
-----end file
the error output is
---begin
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/hello.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
----end
please help