I'm a first day graphic programmer. I know how to console and all that stuff but now I'm trying out windows. I'm using Borland C++ 5.02 and when I enter this:
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
MessageBox (NULL, "Hello World" , "Hello", 0);
return 0;
}
It says undefined reference to _main
What do I do? If I use int main() instead of WinMain it works, but the dos box comes up behind it. Any suggestions?