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:
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Cpp1.exe : fatal error LNK1120: 1 unresolved externals
The code is just this:
Code:
#include <windows.h>
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
MessageBox(NULL, "\tHello World!", "My first windows app", NULL);
return 0;
}
Am I missing something really obvious here?