Discussion:
How to pipe output of C Programm
(too old to reply)
Alexander Gran
2009-08-02 23:58:11 UTC
Permalink
Hi,

I have a command line C programm that should send its output via a pipe to
another program. Everything is working fine if I execute it via commandline
or batchfile like
myProg.exe | otherProg.exe

However I want to debug it now. How do I tell Visual (2008) to pipe the
output?

regards
Alex
Jochen Kalmbach [MVP]
2009-08-03 10:08:33 UTC
Permalink
Hi Alexander!
Post by Alexander Gran
I have a command line C programm that should send its output via a pipe to
another program. Everything is working fine if I execute it via commandline
or batchfile like
myProg.exe | otherProg.exe
However I want to debug it now. How do I tell Visual (2008) to pipe the
output?
cmd.exe /c myProg.exe | otherProg.exe
--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Alex Blekhman
2009-08-03 11:50:59 UTC
Permalink
Post by Alexander Gran
I have a command line C programm that should send its output via
a pipe to another program.
KB190351 - "How to spawn console processes with redirected
standard handles"
http://support.microsoft.com/kb/190351

HTH
Alex

Continue reading on narkive:
Loading...