Answers for "const char* to lpwstr"

0

convert const char* to LPWSTR

const char* txt = "some_text";
LPWSTR new_text = (LPWSTR)txt;
Posted by: Guest on April-07-2021
0

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;
}
Posted by: Guest on October-07-2021

Code answers related to "const char* to lpwstr"

Browse Popular Code Answers by Language