title: How to redirect STDOUT from a dll
body: <p>I have a dll file that writes to <code>STDOUT</code> via <code>std::cout</code>.</p>
  
  <p>Is there anyway to redirect the output from the dll to the application that is using it, without having to create functionality inside the dll? For example is there anyway to "listen" to its output?</p>
  
  <p>I'm looking for an answer that will work cross-platform.</p>