Connecting Tech Pros Worldwide Forums | Help | Site Map

Running in the background

Mike
Guest
 
Posts: n/a
#1: Jul 19 '05
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!
Mike Wahler
Guest
 
Posts: n/a
#2: Jul 19 '05

re: Running in the background


"Mike" <comixnewb@yahoo.com> wrote in message
news:3e700945.0309181708.41d417ac@posting.google.c om...[color=blue]
> Hi, I am new to C++ programming (pg. 154) and I had a question that my
> book has not answered yet ( C++ for dummies).[/color]

Don't allow anyone to call you a 'dummy'. Get
a real textbook. See www.accu.org for peer reviews.
[color=blue]
> I was wondering how you
> get a program to run "in the background".[/color]


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++).
[color=blue]
>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[/color]

C++ knows nothing of 'windows'.
[color=blue]
>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.[/color]

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


Buster Copley
Guest
 
Posts: n/a
#3: Jul 19 '05

re: Running in the background


Mike wrote:[color=blue]
> 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![/color]

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.

Artie Gold
Guest
 
Posts: n/a
#4: Jul 19 '05

re: Running in the background


Mike wrote:[color=blue]
> 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![/color]

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

Closed Thread