Subj : Re: redirect stdout To : borland.public.cpp.borlandcpp From : "mike" Date : Tue Apr 06 2004 10:12 pm Jogy, Thats OK, i'm trying to use the win32 api to do this and not MFC or OWL. i know it has to be possible... just haven't found the answer yet. =) aloha. mike "Jogy" wrote in message news:407267d8$1@newsgroups.borland.com... > mike wrote: > > hi, > > > > i was wondering how to go about "redirecting" stdout to an edit control. i'm > > writng a GUI and i want to be able to have a button where the user would > > click "Compile" and it would compile the specified file and redirect the > > output to a edit control. i wanted to do this in real time, so writing it to > > a file then reading the file and displaying that in the edit control isn't > > an option. any suggestions? > > > > mahalo. > > mike > > > > > > Hello, > > I am doing something similar in my OWLMaker program - > it runs a command-line command in a console, captures the output > and shows it in a list box. > > I can post the code which does that, either on my site, or on the > attachments newsgroup. > > Jogy .