convert const char* to LPWSTR
const char* txt = "some_text";
LPWSTR new_text = (LPWSTR)txt;
convert const char* to LPWSTR
const char* txt = "some_text";
LPWSTR new_text = (LPWSTR)txt;
const char* to lpwstr
wchar_t *convertCharArrayToLPCWSTR(const char* charArray)
{
wchar_t* wString=new wchar_t[4096];
MultiByteToWideChar(CP_ACP, 0, charArray, -1, wString, 4096);
return wString;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us