Click here to Skip to main content
12,394,573 members (73,646 online)
Rate this:
Please Sign up or sign in to vote.
See more: VC6 C++
Hi All
I am writing a application in VC 6
in Win32 console application format.
I want to hide the console window as soon as .exe starts without stopping the exe . this exe do not require interaction from the user.

I want to run the application on a PC in my absence, without obvious knowledge of a PC user, that is why i want the console window to be closed immediately somehow.
If someone is closing it from task manager let it be.

if there is a solution i shall be following these steps

1. start cmd
2. execute the .exe, ( it should hide the console window immidiately)
3. i will stop it from task manager if required.

Posted 18-Nov-11 3:27am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Do not create it as a console app then. Create a windows-app but do not create any visible windows. You may want a hidden window if you need to handle messages.
SAKryukov 18-Nov-11 11:21am
Right, a 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 18 Nov 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100