title: I want to convert std::string into a const wchar_t *
body: <p>Is there any method?
  My computer is AMD64.</p>
  
  <pre><code>::std::string str;
  BOOL loadU(const wchar_t* lpszPathName, int flag = 0);
  </code></pre>
  
  <p>When I used: </p>
  
  <pre><code>loadU(&amp;str);
  </code></pre>
  
  <p>the VS2005 compiler says:</p>
  
  <pre><code>Error 7 error C2664:: cannot convert parameter 1 from 'std::string *__w64 ' to 'const wchar_t *'
  </code></pre>
  
  <p>How can I do it?</p>