title: error C2440: '=': cannot convert from 'const char *' to 'LPCWSTR'
body: <p>I'm new to using <code>Visual Studio</code> and need to compile an application but I'm getting the error:  <code>error C2440: '=': cannot convert from 'const char *' to 'LPCWSTR'</code> on line:</p>
  
  <pre><code>std::string open_file_dialog(
      std::string title,
      std::string filter)
  {
      char filename[MAX_PATH];
  
      OPENFILENAME ofn;
      ZeroMemory(&amp;filename, sizeof(filename));
      ZeroMemory(&amp;ofn, sizeof(ofn));
      ofn.lStructSize = sizeof(ofn);
      ofn.hwndOwner = NULL;
      ofn.lpstrFilter = filter.c_str();
      ofn.lpstrFile = filename;
  </code></pre>
  
  <p>I believe it might have to do with my project settings as the source code I am looking at should compile as it is. However, I'm not 100% sure. Can anyone help me out here?</p>