Hi, i'm new user of the poco library. On the start i have problem with usage of Process and Pipes objects - i cannot find any working sample of that. I need even simplest sample how to run it in proper way. I'm fresh in inerprocess programming, so maybe here is the problem. But nice small example would be appreciated.
// master program
int _tmain(int argc, _TCHAR* argv[])
{
Poco::Pipe out_pipe_1;
Poco::Pipe in_pipe_1;
Poco::Process::Args args_1;
Poco::ProcessHandle proc_handle_1( Poco::Process::launch( "test.exe", args_1, &in_pipe_1, &out_pipe, 0 ) );
unsigned char buff[] = { 'a', 'b', 'c', 'd', 'e' };
in_pipe_1.writeBytes( (void*) buff, 5 );
proc_handle_1.wait();
return 0;
}
// process to run
int _tmain(int argc, _TCHAR* argv[])
{
unsigned char buffer[5];
Poco::Pipe pipe;
memset( buffer, 0, 5 );
// and now what?
i've try to use readBytes() method of pipe, but probably nothig is passed to this process, it hangs and nothing happens.
return 0;
}
Maybe here is some other philosophy, how it should be handled? Any tip is welcome.





