title: WinMain arguments
body: <p>My issue is that the arguments are only retrieving the first letter in each of the parameters, for this i do not know why..
  Could someone elaborate?</p>
  
  <pre><code>#include &lt;Windows.h&gt;
  #include &lt;string&gt;
  
  int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hpInstance, LPSTR nCmdLine, int iCmdShow){
  
  LPWSTR *szArglist;
      int nArgs = 0;
      szArglist = CommandLineToArgvW(GetCommandLineW(), &amp;nArgs);
      std::string a;
      for(int i=0; i&lt;nArgs; i++){
          a += (LPCSTR)szArglist[i];
      }
  
      MessageBox(NULL, (LPCSTR)a.c_str(), (LPCSTR)a.c_str(), MB_OK);
  
      LocalFree(szArglist);
  return 0;
  }
  </code></pre>
  
  <p>I believe the issue lies within <code>CommandLineToArgvW(GetCommandLineW(), &amp;nArgs);</code></p>