Question

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.

Was it helpful?

Solution

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

OTHER TIPS

Use WinMain instead of main as your program's entry point: WinMain at MSDN

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top