Read from the console window
-
I'm starting a console window application from a dialog based application, using CreateProcess, because I need to hide the DOS window. Do you guys have any idea how can I capture the output of the DOS window to display it in my dialog? I tried to pipe the DOS application to a file, and then read from the file, but there's one problem: the DOS application writes to the file when it finishes. I need to get info from it while it is still working. To give you a better understanding of what I'm trying to do, here's an example: I start an external compiler, and I want to display in my dialog the data that the compiler shows in its DOS window. Thanks!
-
I'm starting a console window application from a dialog based application, using CreateProcess, because I need to hide the DOS window. Do you guys have any idea how can I capture the output of the DOS window to display it in my dialog? I tried to pipe the DOS application to a file, and then read from the file, but there's one problem: the DOS application writes to the file when it finishes. I need to get info from it while it is still working. To give you a better understanding of what I'm trying to do, here's an example: I start an external compiler, and I want to display in my dialog the data that the compiler shows in its DOS window. Thanks!
I have a simple class for doing this which I will send to you. Just email me at gullettm@yahoo.com and I will respond with the class and a demo project. The class is not 100% perfect but works very well for my needs which sound exactly like yours. Thanks, Matt Gullett
-
I have a simple class for doing this which I will send to you. Just email me at gullettm@yahoo.com and I will respond with the class and a demo project. The class is not 100% perfect but works very well for my needs which sound exactly like yours. Thanks, Matt Gullett