Einfach ne Konsolenanwendung erstellen...

int main()

ist der main-Funktionskopf für Konsolenanwendungen.

Für WIndows-Anwendungen gilt:

int WINAPI WInMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpcmdline, int ncmdshow)