title: MultiByteToWideChar wchar * to char *
body: <p>Here is func :</p>
  
  <pre><code>char *ToLowerSTR(/*char*/ WCHAR* buffer) // NEED TO FIX UNRESOLVED EXTERNAL
  {
      CHAR* str;
      MultiByteToWideChar(CP_ACP, 0, str, strlen(str) + 1, buffer, sizeof(buffer)/sizeof(WCHAR));
  ....
  return str;
  }
  </code></pre>
  
  <p>and error : </p>
  
  <blockquote>
    <p>LNK2019: unresolved external symbol
    "char * __cdecl ToLowerSTR(char *)"
    (?ToLowerSTR@@YAPADPAD@Z) referenced
    in function "unsigned long __cdecl
    GetPID(char *)"  )</p>
  </blockquote>
  
  <p>how can I conver wchar * to char * ?</p>