This is the program :
#include <windows.h>
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
MessageBox (NULL, TEXT ("Hello, Windows!"), TEXT ("HelloMsg"), 0) ;
return 0 ;
}
I can’t understand the error.Please help in correcting it.
**ERROR** `fatal error LNK1120: 1 unresolved externals
I think you might be working on a
console projectand trying to make awindows application!If it is so,select a new win32 project from
file->newand then re-write that code.You will have this as output: