Click here to Skip to main content
15,868,019 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.



Thanks
kanade
Posted

1 solution

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.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 18-Nov-11 11:21am    
Right, a 5.
--SA

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900