If you want a console in a win32 application (as oposed to a console application) you'll have to make your own -
Code:
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
LPCSTR output= "Hello World!";
LPCSTR terminate = "Press any key to continue...";
DWORD written;
DWORD read;
INPUT_RECORD ir;
AllocConsole();
WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE),
output,strlen(output),&written,NULL);
WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE),
"\n",1,&written,NULL);
WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE),
terminate,strlen(terminate),&written,NULL);
for(;; )
{
ReadConsoleInput(GetStdHandle(STD_INPUT_HANDLE),&ir,1,&read);
if (ir.EventType==KEY_EVENT)
break;
}
FreeConsole();
return 0;
}
Alternatively, select console app from the menu.