Subj : Re: redirect stdout to a edit control To : borland.public.cpp.borlandcpp From : "Jerry Bloomfield (TeamB)" Date : Sat Dec 13 2003 09:03 pm On Thu, 11 Dec 2003 21:15:35 -1000, "mike" wrote: > i also wanted to know how to redirect stdout to an edit control. the only >way i could think of was to redirect stdout to a file then display the file >in the edit control. however this is not real time and i need it to be. If you are talking about "stdout" from the application you are writing, then it is easy, you just write to the edit control, not stdout. If you are talking about an "external executable", it is still rather simple, you use CreateProcess, and specify pipes for stdout, and any other you wish to redirect like stderr, or stdin. Jerry Bloomfield (TeamB) -- http://www.teamb.com JersWork@iwc.net Please do *NOT* send private e-mail without prior permission (my anti-spam filters will probably just delete it anyway ) .