Convert std::string to LPCWSTR (best way in c++)

Sorry crescens, didn’t realise. Express is very nice, but you’re right, it doesn’t do CString. I should know, I tried to do it a year ago before I upgraded. However, if you declare a std::basic_string s; you can use s.c_str () directly in the API call without referring to CString.

https://social.msdn.microsoft.com/Forums/Lync/en-US/0f749fd8-8a43-4580-b54b-fbf964d68375/convert-stdstring-to-lpcwstr-best-way-in-c?forum=VsexpressvcÂ