¿Hay algún método? Mi computadora es AMD64.Quiero convertir std :: string en un const wchar_t *
::std::string str;
BOOL loadU(const wchar_t* lpszPathName, int flag = 0);
cuando utilicé:
loadU(&str);
el compilador VS2005 dice:
Error 7 error C2664:: cannot convert parameter 1 from 'std::string *__w64 ' to 'const wchar_t *'
¿Cómo puedo hacerlo?
O simplemente haga un 'string var = L" text ";' – cybermonkey
@ ʎǝʞuoɯɹǝqʎɔ: Quiere decir 'wstring var = L" text ";' –