I am delving into Windows API programming using Borland's compiler.
When I try to compile sample programmes - for example:
Code:
#include <windows.h>
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
MessageBox(NULL, "Hello World!", "Message", MB_OK);
return 0;
}
there is an error message
Error: Unresolved external '_main' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ
Can anyone advise me what this actually means and how I can set up the compiler to compile Windows programmes?
Grateful for any help.