Group: comp.lang.c++
From: "Alf P. Steinbach"
Date: Saturday, April 12, 2008 6:15 PM
Subject: Re: c++ event sink

* Eric Kaplan:
> that's a very good point, how to start a seperate process from the
> code?

In standard C++ and C all you have is the 'system' function, which is not
adequate for your purposes.

Essentially the question is therefore environment-specific, with best answers in
an environment-specific group.

The FAQ lists a few such groups.


> and how can I notify the caller when the process is finished?

Again, system-specific. E.g., in Windows, which is what I know best, you can
use mailslots (which are essentially datagrams camouflaged via file
abstraction), pipes, any waitable global object, socket programming, real files,
higher level COM object, message queues, window messages, and more, it's like
they say just your fantasy that sets the limits, but it's all off-topic here in
clc++, sorry!


Cheers, & hth.,

- Alf

Safety Articles | Usenet Groups | Usenet News | Bluegrass