Commad Line App
-
Hi All, I want to write an application that runs in the background and does not bring up any kind of UI (Not even the command prompt). How can I achieve this? Thank you, AJ
-
Hi All, I want to write an application that runs in the background and does not bring up any kind of UI (Not even the command prompt). How can I achieve this? Thank you, AJ
Create a "Win32 Application" project.
nave [OpenedFileFinder]
-
What is the purpose of having an invisible window? What is it going to do? Why should it only be a command line application?
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
try the following,
#ifdef _UNICODE
#pragma comment (linker, "/subsystem:windows /entry:wmainCRTStartup")
#else //_UNICODE
#pragma comment (linker, "/subsystem:windows /entry:mainCRTStartup")
#endif //_UNICODEit makes your application as windows application and since you are not creating any windows in console application (normally not) no UI is visible. you can also think about windows NT services.
-
You can also hide the console window,
ShowWindow(GetConsoleWindow(), SW_HIDE);
-
You can also hide the console window,
ShowWindow(GetConsoleWindow(), SW_HIDE);
I don't understand why your previous post was voted down. I can only think that someone thinks the OP is trying to do a malicious program, for which you're providing him some assistance and so they voted you down. Anyways, I know that you won't assist someone to do a malicious program and so I'll try to bring up the score.
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
try the following,
#ifdef _UNICODE
#pragma comment (linker, "/subsystem:windows /entry:wmainCRTStartup")
#else //_UNICODE
#pragma comment (linker, "/subsystem:windows /entry:mainCRTStartup")
#endif //_UNICODEit makes your application as windows application and since you are not creating any windows in console application (normally not) no UI is visible. you can also think about windows NT services.
I was saying easy way to switch to "Win32 application" from a console application. Sorry if some thing wrong, But i would like to know the technical reason (will be appreciated) that gave me vote 1.
-
Hi All, I want to write an application that runs in the background and does not bring up any kind of UI (Not even the command prompt). How can I achieve this? Thank you, AJ
Are you looking for a windows service
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
I don't understand why your previous post was voted down. I can only think that someone thinks the OP is trying to do a malicious program, for which you're providing him some assistance and so they voted you down. Anyways, I know that you won't assist someone to do a malicious program and so I'll try to bring up the score.
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
Thank buddy, Invisible app can be easily created in windows subsystem application, even a beginner (win32) can understand. So nothing prevents he from creating malicious program. He can have good intention also.
-
Thank buddy, Invisible app can be easily created in windows subsystem application, even a beginner (win32) can understand. So nothing prevents he from creating malicious program. He can have good intention also.
Well, that was only my guess. Besides that, I couldn't think of a reason why someone down-voted you. :)
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
Thank buddy, Invisible app can be easily created in windows subsystem application, even a beginner (win32) can understand. So nothing prevents he from creating malicious program. He can have good intention also.
Unjustified[^] vote here. :|
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
-
Unjustified[^] vote here. :|
Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP
with pleasure.