Simple Windows program errors
Alright, I read "Lesson One: An Introduction to Windows Programming," and copied and pasted the code (see below) into my compiler (VC++ 6.0), compiled fine but when built I get the following errors:
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Cpp1.exe : fatal error LNK1120: 1 unresolved externals
The code is just this:
Am I missing something really obvious here?
int APIENTRY WinMain(HINSTANCE hInstance,
MessageBox(NULL, "\tHello World!", "My first windows app", NULL);