title: Get messages to DebugView
body: <p>I need to write application that could create debug messages that could be displayed in <a href="http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx" rel="nofollow">DebugView</a>. For this purpose I'm using code:</p>
  
  <pre><code>int main ()
  {
      OutputDebugString(L"hello");
      return 0;
  }
  </code></pre>
  
  <p>But no messages are displayed in DebugViewer.</p>
  
  <p>Where is problem?</p>