Showing posts with label char* to LPWSTR. Show all posts
Showing posts with label char* to LPWSTR. Show all posts

12/08/2016

convert char* to LPWSTR

refer to below example


char text[] = "something";
wchar_t wtext[20];
mbstowcs(wtext, text, strlen(text)+1);//Plus null
LPWSTR ptr = wtext;