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 niceBasically 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.



LinkBack URL
About LinkBacks
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. 



id post the code but its not mine its my teachers and the lib is his im just messing around with it. I can put up a zip with the code and lib in it.