Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
5.00/5 (2 votes)
See more:
Hi!

Figured out, that if a native win32 console application
didn`t flush its stdout and stderr,
redirecting its output in realtime is huge problem!

Is it possible to redirect 'bad'(without fflush(stdout)) console apps?

Also found this solution[^], by _Olivier_, but I don`t want to use
any stubs an 'between stuff'!

Thanks!
Posted
Comments
Manfred Rudolf Bihy 28-Dec-10 13:40pm    
If you don' like the "between stuff" as you put it, why not investigate how Olivier did it and build that support into your application?
Just my 2ct

Seems like _Oliver_[^] has done his homework :)

If you are the author of the child process you can take a look at ACE[^]

ACE is a very nice C++ library, suiteable for real time development. It also have a very flexible logging implementation :)

regards
Espen Harlinn
 
Share this answer
 
Comments
Manfred Rudolf Bihy 28-Dec-10 13:30pm    
[Copied on OP's behalf]
Espen Harlinn, thanks for your answer!
But unfortunately, I am not the author of the child process.
Besides, I dont have any access to source code!
Manfred Rudolf Bihy 28-Dec-10 13:38pm    
Agreed, that article impressive!
Since this was not an answer it was moved to a comment.

Please don't post something as an answer that should really be a comment.

Thank you!
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900