473,626 Members | 3,930 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Running in the background

Hi, I am new to C++ programming (pg. 154) and I had a question that my
book has not answered yet ( C++ for dummies). I was wondering how you
get a program to run "in the background". To be perfectly clear about
what I am asking, I do *not* want it to run "invisibley " or
"stealthily " I just don't want a window poping up every time I run the
program. I'm sorry if this dosen't make much sense but its the best
way I can put it.

Thanks alot for any help that can be given!
Jul 19 '05 #1
3 5267
"Mike" <co*******@yaho o.com> wrote in message
news:3e******** *************** ***@posting.goo gle.com...
Hi, I am new to C++ programming (pg. 154) and I had a question that my
book has not answered yet ( C++ for dummies).
Don't allow anyone to call you a 'dummy'. Get
a real textbook. See www.accu.org for peer reviews.
I was wondering how you
get a program to run "in the background".

C++ has no concept of 'background', 'multitasking'
'threading' or any other such necessarily platform
specific features.

C++ was intentionally designed to be platform independent,
so does not address things which might exist on some
platforms, and not on others.

What you're asking can indeed be done with platform
specific extensions and/or specialty libraries, if
your target platform supports such things.
Consult a newsgroup which discusses these issues.
But note that when you do these things, you've
departed from the 'official' standard C++ language.
This isn't necessarily a 'bad thing', but moves
things outside the topic here (ISO standard C++).
To be perfectly clear about
what I am asking, I do *not* want it to run "invisibley " or
"stealthily " I just don't want a window poping up
C++ knows nothing of 'windows'.
every time I run the
program. I'm sorry if this dosen't make much sense but its the best
way I can put it.


Sounds like you want a 'window' (in Microsoft Windows?)
to be 'hidden' (or perhaps not even created) while its
associated program is running.

See www.msdn.microsoft.com
and/or
visit a Windows programming group such as
microsoft.publi c.win32.program mer.ui or similar.

-Mike
Jul 19 '05 #2
Mike wrote:
Hi, I am new to C++ programming (pg. 154) and I had a question that my
book has not answered yet ( C++ for dummies). I was wondering how you
get a program to run "in the background". To be perfectly clear about
what I am asking, I do *not* want it to run "invisibley " or
"stealthily " I just don't want a window poping up every time I run the
program. I'm sorry if this dosen't make much sense but its the best
way I can put it.

Thanks alot for any help that can be given!


There are as many different answers to that question as there are
different operating systems. That's why you should ask again on a
newsgroup that deals with your particular OS, having read the
newsgroup's welcome message, FAQ and/or charter first (*cough*
http://www.parashift.com/c++-faq-lite/how-to-post.html).
For help on MS Windows platforms, MSDN is a good starting place.
Alternatively, you can look for a cross-platform library (the
Available Libraries FAQ at http://www.trumphurst.com/cpplibs/
might be helpful).

Good luck,
Buster.

Jul 19 '05 #3
Mike wrote:
Hi, I am new to C++ programming (pg. 154) and I had a question that my
book has not answered yet ( C++ for dummies). I was wondering how you
get a program to run "in the background". To be perfectly clear about
what I am asking, I do *not* want it to run "invisibley " or
"stealthily " I just don't want a window poping up every time I run the
program. I'm sorry if this dosen't make much sense but its the best
way I can put it.

Thanks alot for any help that can be given!


What's a window? ;-)

Seriously though, this is not a question about C++ at all (which has
no such concepts); it is a question about the particular platform on
which you are running. I would recommend you find a forum specific
to that platform and ask there.

I would also recommend that you visit http://www.accu.org to find a
*good* C++ book from which to learn the language.

HTH,
--ag

--
Artie Gold -- Austin, Texas

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3313
by: Sticks | last post by:
ok... im not quite sure how to describe my problem. i have a php script that runs through my entire php site and writes the resulting output to html files. this is necessary as the nature of the hosting available to me for this particular page prohibits me from using php/mysql as i would like. my script works simply by using output buffers and an include the relevant section of code is as follows: ob_start();
7
3211
by: Arun | last post by:
Hi, This is a scripting question, but since I am writing the script in python I am posting this question here: I have a python script that runs a simulator (that was written in c++, so I use the system() function to run the simulator) over a list of config files. I want the python script to itself run as well as start the simulations totally in the background (the simulations run for a day or two, so basically I want to start them in...
29
5794
by: pb648174 | last post by:
I have a very long transaction that runs on the same database that other users need to use for existing data. I don't care if they see data from the transaction before it is done and am only using the transaction because I need a way to roll it back if any errors happen during the transaction. Unfortunately all tables affected in the long running transaction are completely locked and nobody else can access any of the affected tables while...
1
6009
by: Anonieko | last post by:
Query: How to display progress bar for long running page Answer: Yet another solution. REFERENCE: http://www.eggheadcafe.com/articles/20050108.asp My only regret is that when click the browser back button, it loads the progress bar again. Any solution to this?
2
4860
by: Dave Hughes | last post by:
Just noticed something rather annoying after upgrading my test box (a Linux server running DB2 UDB v8 for LUW) to fixpak 11 (for reference it was previously on fixpak 7). In the past I've relied heavily on the ability to start multiple long-running SQL scripts in the background and have them all run in parallel. Unfortunately, it seems that somewhere between fixpak 7 and fixpak 11 something has been fixed / broken which prevents more...
1
1251
by: want2learn | last post by:
Hi when i run my calendar.aspx site im just getting a blank site. Why do it not show the calendar !? Calendar.aspx <%@ Page Language="VB" AutoEventWireup="True" %> <%@ Import Namespace="System.Web.UI.WebControls.Calendar" %> <html> <head>
6
1324
by: ADT_CLONE | last post by:
Hello guys, Right now I have run into a problem. In my windows application I wish to run a function called waitForClient(), which waits for a clients connection using WinSock. Anyway, within the button click event, I have inserted this function. The only problem is that when you click the button, it freezes the whole windows application. This is because it is running an infinite loop and isn't properly running the rest of the button...
8
4767
by: Ravi | last post by:
Hi to all, There is a start button in my page. if user clicks on that then a php program should start and should listen on a particular port. and also user should able to do other tasks on that page. Is there any way to run php file as background process. Or is there any to run multi thread in php.
1
1512
by: Techidada | last post by:
Hi I am running a background command and want to mointor output of that commands which generate some flag files. When it finish it should be stopped. I tried this open(MON, "$CMD > output.txt |") || die "Can't start the $COMCOMM"; while (<MON>) { opendir(DIR, $dir) or die " Can't open $dir"; while ($file = readdir(DIR)) {
5
3478
by: This | last post by:
I have a pretty basic emailing script that sends a relatively small number (150) of html emails. The emails are compiled, personalised from a mysql db subscribers list, and sent using mail() - after sending, a small summary html page is sent to the user with number sent, time taken and a simple navigation choice. Up to about 100 emails it all works fine - this takes the server about 27 secs . Any more than that and although the emails are...
0
8199
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8705
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8365
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7196
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5574
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2626
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1511
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.