Click here to Skip to main content
12,950,618 members (57,301 online)
Rate this:
 
Please Sign up or sign in to vote.
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 18-Nov-11 3:27am
ulka@NCST1.1K

1 solution

Rate this: bad
 
good
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.
  Permalink  
Comments
SAKryukov 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)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 5,984
CHill60 3,460
Maciej Los 3,053
Jochen Arndt 1,975
ppolymorphe 1,820


Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 18 Nov 2011
Copyright © CodeProject, 1999-2017
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