title: Incompatible with parameter of type "LPCWSTR"
body: <pre><code>#include "stdafx.h"
  #include &lt;windows.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;iostream&gt;
  #include &lt;dos.h&gt;
  using namespace std;
  
  class Dir
  {
  public:
      char* cat;
      Dir()
      {
          cout &lt;&lt; "(C:/*)\n";
          cat = new char[50];
          cin &gt;&gt; cat;
      }
  
      void virtual ShowFiles()
      {
      }
  
  };
  
  
  class Inside : public Dir
  {
  public:
      void virtual ShowFiles()
      {
          HANDLE hSearch;
          WIN32_FIND_DATA pFileData;
  
          hSearch = FindFirstFile(cat, &amp;pFileData);
          if (hSearch != INVALID_HANDLE_VALUE)
              do
              {
                  //  if ((pFileData.dwFileAttributes &amp; FILE_ATTRIBUTE_DIRECTORY))
                  cout &lt;&lt; pFileData.cFileName &lt;&lt; "\n";
              } while (FindNextFile(hSearch, &amp;pFileData));
              FindClose(hSearch);
      }
  };
  int main()
  {
      Dir *obj1[2];
      obj1[1] = new Inside;
      obj1[1]-&gt;ShowFiles();
      return 0;
  }
  </code></pre>
  
  <p>So I have a program, I need to show with dynamic char cat all file in directory, but it is compilable in Borland C++ but in Visual Studio 15 + Resharper it doesn't work. <strong>Severity    Code    Description Project File    Line
  Error (active) argument of type "char *" is incompatible with parameter of type "LPCWSTR"</strong></p>