I searched the board for redirecting cout and all the topic said was it can be done using SetStdHandle. Well what would you pass to it for the HANDLE param? The buffer of a ofstream file? some could would be nice Basically what im trying to do is get output from a library that outputs to STD_OUTPUT_HANDLE through cout, and since i dont have access to the librarys code i just want to switch the handles so i can get the output. Thanx in advance for some help.