Subj : CreateThread To : borland.public.cpp.borlandcpp From : mike Date : Fri May 21 2004 10:03 pm hi, i'm trying to spawn off a console application and redirect all it's output to a GUI. this is implemented and working however i want to thread out the function that does the redirecting. when i try to thread it out it doesn't read anything and i get no data in my gui. if i don't thread it out it works fine, however my GUI is blocking on the funtion that redirects output. my question is if i thread out a function, can i call a static function in the threaded out function? i tried to do it this way and it doesn't work, but i've also tried to put all the code into the function and that doesn't work either. i'm used the win32 CreateThread () along with borland 5.02. can anyone offer any suggestions? if anyone is interested, i created a struct in the class and setup all the things i needed for the threaded function in the struct. then i pass the pointer of the struct to the CreateThread () and go from there. is this incorrect? aloha, mike .