redirecting output
-
I have a solution with C# code in one project calling unmanaged C++, which is in a separate project. The C++ code uses cout <<. These lines of output come to the output window in the debugger. Can I redirect them to a file without changing the code? If so, how? Thanks for any help.
-
I have a solution with C# code in one project calling unmanaged C++, which is in a separate project. The C++ code uses cout <<. These lines of output come to the output window in the debugger. Can I redirect them to a file without changing the code? If so, how? Thanks for any help.
Have you looked at System.Diagnostics.Process class? It has some methods on it for redirecting standard output.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: God-as-Judge, God-as-Forgiver The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
Have you looked at System.Diagnostics.Process class? It has some methods on it for redirecting standard output.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: God-as-Judge, God-as-Forgiver The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
I don't want to change code. I was thinking along the lines of how you would do it if running from a dos prompt/command line: $ aprog.exe > outfile.txt I tried putting " > outfile.txt" on the command parameters line in the debug properties of both projects, but this had no effect.