convert string to lpwstr

Use the following code to convert a string to an LPWSTR in C++:

std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter;
std::wstring wide = converter.from_bytes(yourString);
LPCWSTR lpwstr = wide.c_str();