vnet576
Nov 25 2003, 04:35 AM
I'm trying to modify a command line C program and I want to add a feature so that the console is hidden when the program is run. In other words I don't want to see a dos window in the middle of my screen when i run that program. Any ideas on how to do it. I searched google but I could only find solutions that are either to complicated or don't pertain to my question.
tibbar
Nov 26 2003, 08:25 AM
Well, you could write it as a windows application just not bothering with any windows, instead of as a console app.
also, i've got a program that can be used to run dos/console based progs which will hide the cmd.exe window from the user. i'll post it later on when i get home from work!
vnet576
Nov 26 2003, 04:43 PM
Well I compiled this as a windows app and it works perfectly and no dos windows. Thanks for the idea.
archphase
Nov 27 2003, 12:19 AM
ShowWindow(FindWindow("WindowName", NULL), SW_HIDE);
// Hides window but Class Name and Window Name might be switched, sorry dont have MSN on me.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.