How to write an App with no console window at all

Hi I haven't written any C++ since VS6 so I'm rusty and please pardon me.

I have a need for a very lean application which runs as a native mode executable with no accompanying libraries or manifest file. In other words this program behaves in the manner that a VS6 application would.

I seem to recall that I could get a program to run without a console window by deassigning stdin and stdout but that may have been in a detached child process.

Can anyone tell me how to do this




Answer this question

How to write an App with no console window at all

  • ssekhar

    If you create a windows program you don't get a console window to. There is no need to create your own window.

    Just use the wizard and create an Win32 program. Delete everythin except the WinMain function. Than you have a program that starts without a console window and can be launched from every other program.

    Off course I recommend the usage of VS2003 or VS2005! VC6 is no longer supported and completely out of date!



  • haltmann

    Thank you Martin!!!

    I have my Team Suite C++ all ready to go (and my picnic basket is packed)!



  • How to write an App with no console window at all