Subj : Re: redirect stdout To : borland.public.cpp.borlandcpp From : Paul Mace Date : Wed Sep 01 2004 03:33 pm mike wrote: > thanks for the tip Joggy, but this seems like it only applies to console > programs. i wrote a console one using this and it works. when i try to use a > GUI it doesn't. > > aloha. > mike > > "Jogy" wrote in message > news:4073fba3$1@newsgroups.borland.com... > >>mike wrote: >> >> >>>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 >>> >> >>This may be helpful: >> > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/creating_a_child_process_with_redirected_input_and_output.asp > >>Jogy > > > You can reassign stdin, stdout, stderr with freopen(...) freopen("myoutput.log","a+",stdout);// send output to logfile Paul Mace .