I am new to C under Windows. Whenever I try to run the following program under BC++ 5 or VC++ 6, it displays following error:
---------------------
#include <windows.h>
int _stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpszCmdline, int nCmdShow)
{
MessageBox(0,"Hello","First",0);
return 0;
}
----------------------
Error: Unresolved external '_main' referenced from D:\BC5W2K\LIB\C0X32.OBJ
---------------------
#include <windows.h>
int _stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpszCmdline, int nCmdShow)
{
MessageBox(0,"Hello","First",0);
return 0;
}
----------------------
Error: Unresolved external '_main' referenced from D:\BC5W2K\LIB\C0X32.OBJ