xxxxxxxxxx
const char* txt = "some_text";
LPWSTR new_text = (LPWSTR)txt;
xxxxxxxxxx
wchar_t *convertCharArrayToLPCWSTR(const char* charArray)
{
wchar_t* wString=new wchar_t[4096];
MultiByteToWideChar(CP_ACP, 0, charArray, -1, wString, 4096);
return wString;
}