Boost logo

Boost Users :

From: Foster, Gareth (gareth.foster_at_[hidden])
Date: 2005-07-08 07:27:30


Hello,

I am after a library that will let me do something like the following, and I
was wondering whether there were Boost libraries that would help.

/*
 * some pseudo code ...
 */

Process process("c:\someApp.exe");

process.spawn();

Process::WriteHandle WriteHandle = process.get_write_handle();
Process::ReadHandle ReadHandle = process.get_read_handle();

while(process.good())
{
        std::string sz_output;

        sz_output << ReadHandle;

        if(sz_output == "Continue?")
        {
                "Yes" >> WriteHandle;

                // etc
        }
}

Any ideas?

Cheers,

Gaz

**********************************************
* http://www.mozilla.org/products/firefox/ *
**********************************************


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net