Output redirect
-
I inherited some source code that was originaly written for command line apps. :( Some functions have signatures as follows void doSomething(whatever wh, FILE *fp); so if you pass stdin or stderr it will output the result to the console. Since I'm writing an MFC app that needs to use these functions, is there any way to redirect the output to a MessageBox, Static text or any other non console output?
-
I inherited some source code that was originaly written for command line apps. :( Some functions have signatures as follows void doSomething(whatever wh, FILE *fp); so if you pass stdin or stderr it will output the result to the console. Since I'm writing an MFC app that needs to use these functions, is there any way to redirect the output to a MessageBox, Static text or any other non console output?
http://www.codeproject.com/info/search.asp?target=redirect&st=tt&qm=ext[^] One of these links probably gives what you need Roger Allen - Sonork 100.10016 Strong Sad: I am sad I am flying Who is your favorite Strong?