471,570 Members | 902 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,570 software developers and data experts.

Impossible to capture stdOut??

Hi!
Has anybody encountered console exe's that are impossible to get stdOut
from? Does anybody know if there are different(other then string text)
ways that console exe files send out their outputs??

Feb 15 '06 #1
4 3168
Some old apps used to write directly to the display buffer, bypassing all
stdio function calls. Also some apps write to stderr device, which by
default was/is the same as stdout.

But this is all nerdy, very old-style programming... Are you talking about
an old application (ie, DOS), or something newer?
Feb 15 '06 #2
The DOS application is from the mid 90's, so it's pretty old. I have
tried to capture the stdOut using system diagnostics and process
handeling. I can capture stdOuts like the result of using ping.exe etc.
but when I try using the old DOS exe I get nothing out. I would really
appreciate if somebody could help me with this problem.

Feb 16 '06 #3
Also when i try to write the stdOut from the exe to a text file in the
cmd console with >outfile.txt all i get is an empty file :(

Feb 16 '06 #4
Then I'd say the app is writing directly to the memory buffer, in which case
you are screwed :-(...

Unless windows has some new APIs for consoles to grab screenshots, you are
going to have to think up of some alternate way of getting the output.

I think writing directly to the video buffer was even a compiler option for
several compilers in the past. This was very often done for speed reasons,
writing directly to the display memory resulted in huge app speed
improvements over using the bios stdio functions.
Feb 16 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Santtu Nyrhinen | last post: by
2 posts views Thread by ChaosKCW | last post: by
2 posts views Thread by jdbartlett | last post: by
13 posts views Thread by Jim Langston | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Vinnie | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.