title: Error C2664 'void IVerify::SetParams(void)': cannot convert argument 1 from 'std::wstring' to 'wchar_t *'
body: <p>When I am calling SetParams function from the below function, it is throwing an error "cannot convert argument 1 from 'std::wstring' to 'wchar_t *'"</p>
  
  <p>Can anyone please help me on this?</p>
  
  <pre><code>int main()
  {
  
  IVerify* pReader = new BCReader();
  std::wstring oemPathKey;
  
  pReader-&gt;SetParams(oemPathKey, L"read");
  
  delete pReader;
  return 0;
  }
  
  
  void BCReader::SetParams(wchar_t* wszParams, wchar_t* wszParamType)
  {
      m_wszParamType = wszParamType;
      m_wszParams = wszParams;
  }
  
  The member variables are declared like as shown below:
  
  class IVerify
  {
  private:
  
  wchar_t* m_wszParams;
  wchar_t* m_wszParamType;
  };
  </code></pre>