title: Cannot convert CHAR to LPWSTR
body: <p>I encountered a compilation error in Visual Studio 2015, that I am trying to convert <code>char</code> data to <code>LPWSTR</code>. Can I? Or does it work only with string types?</p>
  
  <p>Here is a piece of my code :</p>
  
  <pre><code>    ⋮
  FILE *sortie;
  char fichier[256];//   &lt;--- HERE s my char table
  
  int main(int argc, char *argv[])
  {
      //on masque 
      HWND hwnd = GetForegroundWindow();
      ShowWindow(hwnd, SW_HIDE);
  
      int i, lettre, result, lastresult, lastletter, compteur;
  
      GetCurrentDirectory(256, fichier); 
      strcat(fichier, "\\fichierlog.txt");
  </code></pre>
  
  <hr>
  
  <p>Before posting my question I was at: </p>
  
  <ol>
  <li><p><a href="https://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&amp;l=EN-US&amp;k=k%28C2664%29&amp;rd=true" rel="nofollow noreferrer">https://msdn.microsoft.com/query/dev14.query?appId=Dev14IDEF1&amp;l=EN-US&amp;k=k%28C2664%29&amp;rd=true</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/24058801/c-cannot-convert-from-enum-to-lpctstr">C++ cannot convert from enum to LPCTSTR</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/4561818/how-to-convert-char-to-lpwstr-in-vc">How to Convert char* to LPWSTR in VC++?</a></p></li>
  </ol>
  
  <p>I didn't find my case :(</p>