title: Windows mobile 6 window registration failed
body: <p>When i try to deploy the code (win32 smartphone project) the registration failed error pops up and the application exits. But if i change the right side of wc.lpszMenuName to NULL everything works fine without the menu. Is this feature not supported in win mobile 6? </p>
  
  <pre><code>int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
      LPTSTR lpCmdLine, int nCmdShow)
  {
  
      WNDCLASS wc;
      HWND hwnd;
      MSG Msg;
  
  
  
      wc.style         = 0;
      wc.lpfnWndProc   = WndProc;
      wc.cbClsExtra    = 0;
      wc.cbWndExtra    = 0;
      wc.hInstance     = hInstance;
      wc.hIcon         = NULL;
      wc.hCursor       = LoadCursor(NULL, IDC_ARROW);
      wc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
      wc.lpszMenuName  = MAKEINTRESOURCE(IDR_MENU1);
      wc.lpszClassName = g_szClassName;
  
  
      if(!RegisterClass(&amp;wc))
      {
          MessageBox(NULL, L"Window Registration Failed!", L"Error!",
              MB_ICONEXCLAMATION | MB_OK);
          return 0;
      }
      // ...
  }
  </code></pre>