title: C++ Messagebox in Chinese
body: <hr>
  
  <p>ConsoleApplication.cpp</p>
  
  <pre><code>// ConsoleApplication2.cpp : Defines the entry point for the console application.
  //
  
  #include "stdafx.h"
  
  int main()
  {
       std::cout &lt;&lt; "Hello World" &lt;&lt; std::endl;
       MessageBox(0, LPTSTR("Text Here"), LPTSTR("Text Here"), MB_OK);
       std::cin.clear();
       std::cout &lt;&lt; "Press Enter to continue" &lt;&lt; std::endl;
       std::cin.ignore(32767, '\n');
       std::cin.get();
       return 0;
  }
  </code></pre>
  
  <hr>
  
  <p>stdafx.h</p>
  
  <pre><code>// stdafx.h : include file for standard system include files,
  // or project specific include files that are used frequently, but
  // are changed infrequently
  //
  
  #pragma once
  
  #include "targetver.h"
  
  #include &lt;stdio.h&gt;
  #include &lt;tchar.h&gt;
  #include &lt;iostream&gt;
  #include &lt;Windows.h&gt;
  #include &lt;sstream&gt;
  </code></pre>
  
  <hr>
  
  <p>Whenever I run the MessageBox code, it comes out in Chinese characters.
  The code is above.</p>