"Ivan" <Iv**@discussions.microsoft.com> wrote in message
news:8F**********************************@microsof t.com...
I'm trying to capture standard output of the other process which is
launched from my win app. I tried to do it with freopen function which
captured content of the printf functions, but not the output of the other
processes (even if it used printf function and launched with system
function).
How can I perform my task?
How should I run other processes?
The usual advice would have your parent process creating "pipes" which are
used as the child's standard input and/or output devices. The child
unknowingly writes its output to a pipe. The parent reads from the pipe and
displays, parses, analyzes it as necessary. Details are here:
http://support.microsoft.com/?id=190351
Regards,
Will