running program as a background process

R

ruthless

hello

I've got a question how can I write a program(computing program) working in
OS background(Win or Linux)?

E.g. I'm starting my program for computing and it works in system
backgraound, and after finishing program brings himself foreground with
message: "And the solution is:...."

How can I hide it to the toolbar(Win)?

thanks in advance
especially for any sample codes and functions
greetings R
 
H

Hallvard B Furuseth

I've got a question how can I write a program(computing program)
working in OS background(Win or Linux)?

Wrong newsgroups: these are questions specific to those systems, not
about the C/C++ languages in general. Try a Linux or Unix programming
newsgroup, and a Windows programming newsgroup. And I strongly suggest
that you write two postings, don't crosspost between the two groups.
 
J

Jeffrey Schwab

Hallvard said:
Wrong newsgroups: these are questions specific to those systems, not
about the C/C++ languages in general. Try a Linux or Unix programming
newsgroup, and a Windows programming newsgroup. And I strongly suggest
that you write two postings, don't crosspost between the two groups.

What he said.

The function you want is probably fork().
 
P

puppet_sock

Hallvard B Furuseth said:
And I strongly suggest
that you write two postings, don't crosspost between the two groups.

Actually, if an article belongs in both groups, a crosspost is
preferable. A crosspost means there is only one news article.
A multi post means there is a distinct article for each group.

However, the cases where an article actually belongs in both
groups should be comparably rare. In this case, the OP was
off topic in both groups.
Socks
 
H

Hallvard B Furuseth

puppet_sock said:
Actually, if an article belongs in both groups, a crosspost is
preferable.

It doesn't. He wants to know how to do it on Linux and how to do it on
Windows. The answers will be different, and each is completely off-
topic for the other group. In addition, one never knows when a Windows
posting on a Linux group will trigger a flame war or some possilby
truthful but certainly useless 'Windows is trash' postings.
 
P

Peter van Merkerk

Jeffrey Schwab said:
What he said.

The function you want is probably fork().

Standard C++ doesn't have a fork() function and neither does Windows (for
this platform take a look at the CreateProcess()). I.e. you will need to
use platform specific functions which are beyond the scope of this
newsgroup. See also: http://www.slack.net/~shiva/welcome.txt
 
A

Alex

Actually, if an article belongs in both groups, a crosspost is
preferable. A crosspost means there is only one news article.
A multi post means there is a distinct article for each group.

It does not belong in both groups. It belongs in neither, in fact.
Even if the OP got it right and cross-posted to Linux and Windows
groups, then the half of the question would be off topic in both
groups. Same would be true for the responses. So, in effect, he
has two different questions, which would be best handled by two
separate posts to two different groups.

Alex
 
P

puppet_sock

Hallvard B Furuseth said:
puppet_sock said:
Actually, if an article belongs in both groups, a crosspost is
preferable.

It doesn't. [snip]

Open the reading-comprehension bay doors Hall. If you had
read the part you snipped from my article you would have seen
me say:
In this case, the OP was
off topic in both groups.

Socks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,122
Messages
2,570,717
Members
47,283
Latest member
VonnieEwan

Latest Threads

Top