title: Cannot convert 'const char*' to 'WCHAR*' in argument passing
body: <p>I have documentation where written that username, IP and password must be <code>const char*</code> and when I'm putting varaibles in <code>const char</code>, I'm getting this error message.</p>
  
  <p>This is my code:</p>
  
  <pre><code>#include &lt;cstdlib&gt;
  #include &lt;iostream&gt;
  #include &lt;stdio.h&gt;
  #include &lt;windows.h&gt;
  
  using namespace std;
  
  typedef int (__cdecl *MYPROC)(LPWSTR);
  
  int main()
  {
      HINSTANCE hinstDLL;
      MYPROC ProcAdd;   
      hinstDLL = LoadLibrary("LmServerAPI.dll");
      if(hinstDLL != NULL){
          ProcAdd = (MYPROC) GetProcAddress(hinstDLL,"LmServer_Login");            
          if(ProcAdd != NULL){
              const char* IP = "xxx.177.xxx.23";
              const char* name = "username";
              const char* pass = "password";
              int port = 888;
              ProcAdd(IP,port,name,pass);
              system ("pause");          
          }          
      }
  }
  </code></pre>
  
  <p>And I got this error: </p>
  
  <blockquote>
    <p>cannot convert <code>const char*' to</code>WCHAR*' in argument passing</p>
  </blockquote>
  
  <p>Which kind of variable must I use for those arguments and how? </p>