Computing.Net > Forums > Programming > How to run c++ prog in background

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to run c++ prog in background

Reply to Message Icon

Name: aditya
Date: December 25, 2005 at 22:18:46 Pacific
OS: Windows
CPU/Ram: 128 MB RAM, P-4
Comment:

Hi,

I have a program that is used to backup several files. And it runs constantly. I have made this program in c++. I m using windows.h only.

I want to run this application background everytime the computer login. Means nothing shud come in task bar and no window sud open.
Please tell me what code sud I add to my program to make it invisible.

Can someone please help me with it.

Regards
-Aditya Raj




Sponsored Link
Ads by Google

Response Number 1
Name: ghostdog
Date: December 26, 2005 at 05:59:05 Pacific
Reply:

it's not making it invisible, just making it run as a service everytime the computer starts.
I am not into Windows programming/C++ programming, but a random check on the web shows me a website you can reference
http://www.muukka.net/programming/service.html
hope it can guide you a bit.good luck


0

Response Number 2
Name: tommycoolman
Date: December 27, 2005 at 13:01:01 Pacific
Reply:

Is this a Win32 Console program, or an actual Win32 Application?

In a Win32 Application, the ShowWindow() function tells Windows how to display the window of your program. Without it, the window (and it's corresponding taskbar) would not show. Or you could use ShowWindow() to hide your window by using the SW_HIDE parameter. As for running the program everytime Windows starts, it's as simple as putting a shortcut in your startup folder.

If this is a Win32 Console program, then I think you would have to re-write the code to a Win32 Appliction in order to eliminate the black console window.

Hope this helps,
Tommy


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


need help with perl Setting Classpath with Pe...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: How to run c++ prog in background

Perl - Run command(s) in background www.computing.net/answers/programming/perl-run-commands-in-background/7855.html

how to compile C program in edit pl www.computing.net/answers/programming/how-to-compile-c-program-in-edit-pl/8975.html

How to clear a textbox in asp.net www.computing.net/answers/programming/how-to-clear-a-textbox-in-aspnet-/8234.html