Capture console output
-
I am trying to capture the output from a function that computes some data then draw this in a text box. The following link does this for a .exe but I would like to do this for an owner-process. http://www.codeproject.com/csharp/LaunchProcess[^] Your help is appreciated. Kash
-
I am trying to capture the output from a function that computes some data then draw this in a text box. The following link does this for a .exe but I would like to do this for an owner-process. http://www.codeproject.com/csharp/LaunchProcess[^] Your help is appreciated. Kash
Take a look at this[^] article. Basically, it does a
Process.Start
and then redirects console I/O to display it in a textbox. Regards Senthil _____________________________ My Blog | My Articles | WinMacro -
Take a look at this[^] article. Basically, it does a
Process.Start
and then redirects console I/O to display it in a textbox. Regards Senthil _____________________________ My Blog | My Articles | WinMacroHi Senthil, Thanks for that. This works fine for writing data within C# to the shellcontrol. However, I am trying to capture the I/O from a dll written in another language. I can usually capture this by using AllocConsole(). Is there a way to do this in your control? For example: my dll subroutine is called aTest() and is declared as a void. aTest() merely outputs data to the console.