Answers for "char * to LPCWSTR"

1

char to LPWSTR

char text[] = "something";
 wchar_t wtext[20];
 mbstowcs(wtext, text, strlen(text)+1);//Plus null
 LPWSTR ptr = wtext;
Posted by: Guest on December-02-2020

Browse Popular Code Answers by Language