title: Redirect cout from C++ dll to a textbox in C#
body: <p>I'm trying to display the console output (cout) of a method in a dll to a textbox in C# program. Every time I call the method, the console output will be displayed in the Output Pane of Visual Studio. Is there a way to redirect the content of the Output Pane to the textbox?</p>
  
  <p>The dll was written by someone else in C++ and I have no control in changing it.
  The dll is wrapped using SWIG so that it can be called by my C# code.</p>