title: What's wrong with my character set (Win32 API)
body: <p>I'm currently learning Win32 using <strong><a href="http://www.winprog.org/tutorial/" rel="nofollow">this tutorial</a></strong>, and I have a hard time with my displayed characters.</p>
  
  <p>Take for instance this piece of code which adds a menu to my window upon creation:</p>
  
  <pre><code>    case WM_CREATE: {
              HMENU hMenu, hSubMenu;
              HICON hIcon, hIconSm;
  
              hMenu = CreateMenu();
              hSubMenu = CreatePopupMenu();
  
              AppendMenu(hSubMenu, MF_STRING, ID_FILE_EXIT, "Exit");
              AppendMenu(hMenu, MF_STRING | MF_POPUP, (UINT)hSubMenu, "File");
  
              hSubMenu = CreatePopupMenu();
              AppendMenu(hSubMenu, MF_STRING, ID_STUFF_GO, "&amp;GO");
              AppendMenu(hMenu, MF_STRING | MF_POPUP, (UINT)hSubMenu, "&amp;Stuff");
  
              SetMenu(hwnd, hMenu);
  
              hIcon = LoadImage(NULL, "Stuff.ico", IMAGE_ICON, 32, 32, LR_LOADFROMFILE);
  
              if (hIcon)
                  SendMessage(hwnd, WM_SETICON, ICON_BIG, (LPARAM)hIcon);
              else
                  MessageBox(hwnd, "Could not load large icon!", "Load Error", MB_OK | MB_ICONERROR);
  
              hIconSm = LoadImage(NULL, "Stuff.ico", IMAGE_ICON, 16, 16, LR_LOADFROMFILE);
  
              if(hIconSm)
                  SendMessage(hwnd, WM_SETICON, ICON_SMALL, (LPARAM)hIconSm);
              else
                  MessageBox(hwnd, "Could not load small icon!", "Load Error", MB_OK | MB_ICONERROR);
          }
          break;
  </code></pre>
  
  <p>That is inside of a <code>switch</code> block within my <code>WndProc</code> function that handles the Windows Messages received from the Message Loop.</p>
  
  <p>Each string that is to be displayed:</p>
  
  <pre><code>"Exit"
  "File"
  "&amp;GO"
  "&amp;Stuff"
  </code></pre>
  
  <p>Is unreadable at runtime as they are displayed as little squares, just like the codepage was not the right one or something like that. When I run the tutorial, all the strings are correctly displayed. I tend to stick exactly to what the tutorial says to help me get the thing right, and its pedagogy is good. Anyway!...</p>
  
  <p>I'm using:</p>
  
  <ol>
  <li>Microsoft Visual Studio 2008 Team System;</li>
  <li>Microsoft Windows Server 2003 using RDP;</li>
  <li>Local OS is Windows Vista Ultimate.</li>
  </ol>
  
  <p>Anyone has a clue about it?</p>