I have a std::wstring variable and I need to get a wchar_t * from that std::wstring variable. I tried using the c_str() method from std::wstring but that returns a const wchar_t * so I get the following error
How can I fix that?Code:
error C2440: '=' : cannot convert from 'const wchar_t *' to 'wchar_t *'
Conversion loses qualifiers