title: AllocConsole() not displaying cout
body: <p>I have a DLL where I use AllocConsole() and cout to display data for debugging purposes.<br>
  It used to work fine but since I updated my compiler (Visual Studio 2012) to the latest the dll just shows the console but not the prints/couts.<br>
  I am out of idea's as to why this is happening.<br>
  Any idea's?</p>
  
  <p>Part of my code</p>
  
  <pre><code>__declspec(dllexport) INT APIENTRY DllMain(HMODULE hDLL, DWORD Reason, LPVOID Reserved)
  {
      switch(Reason)
      {
      case DLL_PROCESS_ATTACH:    
          AllocConsole();
  
          DisableThreadLibraryCalls(hDLL);
  
          //
          DetourTransactionBegin();
          DetourUpdateThread(GetCurrentThread());
          DetourAttach(&amp;(PVOID&amp;)pSend, MySend);
          if(DetourTransactionCommit() == NO_ERROR)
               cout &lt;&lt; "[" &lt;&lt; MySend &lt;&lt; "] successfully detoured." &lt;&lt; endl;
  </code></pre>
  
  <p>But nothing gets displayed.</p>