Click here to Skip to main content
15,887,585 members
Home / Discussions / C#
   

C#

 
GeneralRe: Map Control Pin
FB3914-Sep-07 10:31
FB3914-Sep-07 10:31 
QuestionAddress from HouseNumber and PostCode Pin
Gareth H14-Sep-07 2:29
Gareth H14-Sep-07 2:29 
AnswerRe: Address from HouseNumber and PostCode Pin
Craster14-Sep-07 2:44
Craster14-Sep-07 2:44 
GeneralRe: Address from HouseNumber and PostCode Pin
Gareth H14-Sep-07 2:52
Gareth H14-Sep-07 2:52 
GeneralRe: Address from HouseNumber and PostCode Pin
Pete O'Hanlon14-Sep-07 3:34
mvePete O'Hanlon14-Sep-07 3:34 
GeneralRe: Address from HouseNumber and PostCode Pin
Gareth H14-Sep-07 3:54
Gareth H14-Sep-07 3:54 
QuestionAutocorrect functionality in windows forms Pin
chakran14-Sep-07 2:12
chakran14-Sep-07 2:12 
Questionconsole app wrapper help [modified] Pin
mbender14-Sep-07 2:12
mbender14-Sep-07 2:12 
I am currently tasked with providing a friendlier user interface here at work that will provided new features, but also will interact with several console apps. I need to be able to read/write to these applications. The key is being able to read and write multiple times to the same process.

I understand that I could use batch files for this but this will not provide the real-time feedback and interaction that I need to pull this off cleanly.

I am a former VB6 developer that has been using C# for a short time now. I have written similar applications to this one in VB6 using a DLL written by Franky Braem (http://www.codeproject.com/atl/redirect.asp). This worked great and is what I need to recreate in C#.

I have a code that is capable of reading and writing to the console using the System.Diagnostic namespace redirecting stdin, stdout and stderr (single thread). My issue with this code is that I have to close the StreamWriter of the process in order to read the stdout. Due to this when I attempt to send a subsequent string to the console I get an error that the TextWriter has been closed. Can I reopen this? I cannot locate anything on doing this.

I played with a second example written by Scott Hanselman (http://www.hanselman.com/blog/SoManyMistakesForMeToMakeSoLittleTimecapturingStandardErrorAndStandardOutput.aspx) that is multithreaded. This exhibits the same behavior described above.

In reality I would really like a C# version of Franky Braem's redirect DLL in C#. Any help here will be greatly appreciated!

Thanks



-- modified at 15:18 Friday 14th September, 2007
* Made clarifications
AnswerRe: console app wrapper help Pin
led mike14-Sep-07 5:06
led mike14-Sep-07 5:06 
GeneralRe: console app wrapper help Pin
mbender14-Sep-07 5:11
mbender14-Sep-07 5:11 
Questioncompilation error Pin
deep714-Sep-07 1:54
deep714-Sep-07 1:54 
QuestionHow to: Report generation through Report Viewer control Pin
Spunky Coder14-Sep-07 1:51
Spunky Coder14-Sep-07 1:51 
AnswerRe: How to: Report generation through Report Viewer control Pin
DLM@TD14-Sep-07 12:29
DLM@TD14-Sep-07 12:29 
QuestionDatabinding Issue Pin
RichardContact-114-Sep-07 1:34
RichardContact-114-Sep-07 1:34 
AnswerRe: Databinding Issue Pin
Pete O'Hanlon14-Sep-07 1:45
mvePete O'Hanlon14-Sep-07 1:45 
QuestionWPF UserControl Warning Pin
Michael O.14-Sep-07 1:18
Michael O.14-Sep-07 1:18 
QuestionDockPanel Pin
Mamphekgo Bahula14-Sep-07 1:06
Mamphekgo Bahula14-Sep-07 1:06 
QuestionAutomating the double click required to resize a datagrids columns Pin
c#_keithy14-Sep-07 0:56
c#_keithy14-Sep-07 0:56 
AnswerRe: Automating the double click required to resize a datagrids columns Pin
ElSpinos14-Sep-07 1:14
ElSpinos14-Sep-07 1:14 
AnswerRe: Automating the double click required to resize a datagrids columns Pin
AETaylor14-Sep-07 1:18
AETaylor14-Sep-07 1:18 
GeneralRe: Automating the double click required to resize a datagrids columns Pin
ElSpinos14-Sep-07 1:42
ElSpinos14-Sep-07 1:42 
QuestionValidation Error when Schema with Entities [modified] Pin
xfun55614-Sep-07 0:24
xfun55614-Sep-07 0:24 
Questionabut dialog Pin
jason_mf13-Sep-07 23:26
jason_mf13-Sep-07 23:26 
AnswerRe: abut dialog Pin
Dave Kreskowiak14-Sep-07 6:29
mveDave Kreskowiak14-Sep-07 6:29 
QuestionHow to find the number of current window handles for a/my process. [modified] Pin
Martin#13-Sep-07 23:06
Martin#13-Sep-07 23:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.