connecting 2 createprocess - like piping in DOS - how?
From: Bill Mudd (mcmuddjunkno_at_earthlink.net)
Date: 01/25/04
- Next message: Jochen Haber: "insufficient memory problem"
- Previous message: H. Debs: "Re: A simple quetion"
- Next in thread: Bill Mudd: "Re: connecting 2 createprocess - like piping in DOS - how?"
- Reply: Bill Mudd: "Re: connecting 2 createprocess - like piping in DOS - how?"
- Reply: Peter Below (TeamB): "Re: connecting 2 createprocess - like piping in DOS - how?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 24 Jan 2004 17:47:17 -0800
I have 2 console programs that, in DOS, can be "piped"
one into the other -
prog1 | prog2
How can this be done in windows using createprocess
for each console prog ?
createprocess(prog1, ...)
createprocess(prog2, ...)
create 2 pipes ? or use a Tmemorytream ?
then what ?
I already know how to setup createprocess to run the console
programs. And creating pipes that read/write the console's standard inputs &
outputs is not the same thing. It's use is just to redirect the console
"screen"
outputs for display to say a Tmemo or whatever.
I have already implemeted this part.
It's connecting the output of progr1 to prog2 that I don't
understand how to do. It is above my current knowledge but I'm trying to
learn. If you could provide a simple code example to illustrate the
explanation it would be appreciated.
Thanks,
Bill Mudd
- Next message: Jochen Haber: "insufficient memory problem"
- Previous message: H. Debs: "Re: A simple quetion"
- Next in thread: Bill Mudd: "Re: connecting 2 createprocess - like piping in DOS - how?"
- Reply: Bill Mudd: "Re: connecting 2 createprocess - like piping in DOS - how?"
- Reply: Peter Below (TeamB): "Re: connecting 2 createprocess - like piping in DOS - how?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|