title: Incompatible var types
body: <p>The below errors are @ the GetFullPathName() function</p>
  
  <pre><code>1   IntelliSense: argument of type "const char *" is incompatible with parameter of type "LPCWSTR"
  2   IntelliSense: argument of type "char *" is incompatible with parameter of type "LPWSTR"
  </code></pre>
  
  <p>I keep getting the above errors when I try to run my program. The variables are of the appropriate type, yet it keeps saying otherwise? Any ideas as to why this is? I don't think it's necessary to type cast them.</p>
  
  <pre><code>#include "stdafx.h"
  
  using namespace std;
  
  int main(int argc, _TCHAR* argv[])
  {
      /* Get path of DLL we're loading */
      string name;
      cin &gt;&gt; name;
  
      const char* DLL_NAME = name.c_str();
  
      HWND handle = FindWindow(0, L"Calculator");
  
      if(handle == NULL){
          cout &lt;&lt; "Couldn't find process window!" &lt;&lt; endl;
      }else{
          cout &lt;&lt; "Process window found, continuing..." &lt;&lt; endl;
  
          DWORD id;
          GetWindowThreadProcessId(handle, &amp;id);
  
          char DLL_LOCATION[MAX_PATH] = {0};
          GetFullPathName(DLL_NAME, MAX_PATH, DLL_LOCATION, NULL);
  
      }
  
      return 0;
  }
  </code></pre>