Search code examples
c++windowswindows-console

How to make a console program doesn't have console window


I'm writing a console program.

The program doesn't print anything.

So, it doesn't need to a console window.

I tried to call FreeConsole() function at program starting point.

When I execute the program from windows explorer, a console window appears and then disappears.

But I wish the console window never appears.

How can I do that?

Thanks in advance.


Solution

  • If you are using Visual Studio .Net then create a normal console application and change the output type to Windows application.