Hide my app w/o CreateProcess()??
-
I have a console app that I'd like to run without the console popping up - no matter who calls it. I know normally, the calling app would use certain flags to hide it when calling CreateProcess() but the ability may not always be there for our users. They are calling it from within another app with scripting capabilities so they are not actually writing a C++ project to call out app. There may be a way to do it from that software (Citect) but I can't be sure. Other than re-writing it as a Windows GUI app, is there anything else I can do to have it run without the console popping up?
-
I have a console app that I'd like to run without the console popping up - no matter who calls it. I know normally, the calling app would use certain flags to hide it when calling CreateProcess() but the ability may not always be there for our users. They are calling it from within another app with scripting capabilities so they are not actually writing a C++ project to call out app. There may be a way to do it from that software (Citect) but I can't be sure. Other than re-writing it as a Windows GUI app, is there anything else I can do to have it run without the console popping up?
Even if you find the console window and hide it, there'll still be a momentary flicker that'd be visible to most users. Instead - you only need to change
main
toWinMain
and change theSUBSYSTEM
linker setting toWINDOWS
. As long as you don't create and show any UI, a WinMain app will be pretty much hidden (visually). -
Even if you find the console window and hide it, there'll still be a momentary flicker that'd be visible to most users. Instead - you only need to change
main
toWinMain
and change theSUBSYSTEM
linker setting toWINDOWS
. As long as you don't create and show any UI, a WinMain app will be pretty much hidden (visually).Nishant is right. I had the same problem and finally figured it out. It now works great without any screen flicker!