473,407 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

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 5259
"Mike" <co*******@yahoo.com> wrote in message
news:3e**************************@posting.google.c om...
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.public.win32.programmer.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
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...
7
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...
29
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...
1
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...
2
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...
1
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...
6
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...
8
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...
1
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 >...
5
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() -...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...

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.