views:

434

answers:

2

Where I can disable in Microsoft-Visual-C++ showing console window?

+1  A: 

Your question is quite ambiguous, so I'm going to try and answer how I interpreted it... If you don't want a console window, try using a different subsystem. Specifically, you probably want the Windows or Native subsystem rather than the Console subsystem.

Matthew Iselin
+3  A: 

In your console application, goto

Properties > Linker > System

change SubSystem to Windows

and in your code replace

int _tmain(int argc, _TCHAR* argv[])

with

int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)

and add

#include <windows.h>

This should avoid showing a console window in your console application.

Indeera
But this just makes the application not a console application...
Pavel Minaev