please help

Well, I seem to stuck with windows programming and here is the problem,
please solve it....

the program is written below...and obviously I want to print Hello,windows98!


#include

int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
MessageBox (NULL, TEXT ("Hello, Windows 98!"), TEXT ("HelloMsg"), 0) ;

return 0 ;
}


but while compiling in Borland c++ compiler version 5.02 i am getting the
error:


Info :Linking D:MY SOURCESHelloMsg.exe
Error: Error: Unresolved external '_main' referenced from F:DEVELOPERBC5LIBC0X32.OBJ


I want to program windows badly but unable to do so ...please help!
how i may get out of this error?



Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories