title: How do I convert a WCHAR * to a regular string?
body: <p>So in Win32 API, I have my main function defined thus:</p>
  
  <p>wmain(int argc, WCHAR* argv[])</p>
  
  <p>I'm passing some arguments to it, and I'd like to execute a switch case based on the value of the argument, something like this.</p>
  
  <pre><code>wmain(int argc, WCHAR* argv[])
  {
      char* temp = argv[];
      switch (temp) {
      case "one": blah blah;
  ...
  }
  </code></pre>
  
  <p>Of course, the temp=argv[] doesn't work, I'm looking for a suggestion to convert it. Right now I have an if-else-if thing going on, and it's VERY inefficient!</p>
  
  <p>The reason I need to convert it is because I cannot execute a switch case on a WCHAR*.</p>
  
  <p>Thanks for looking.</p>