Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- wchar_t *char2LPCWSTR(const char* charArray)
- {
- wchar_t* wString = new wchar_t[4096];
- MultiByteToWideChar(CP_ACP, 0, charArray, -1, wString, 4096);
- return wString;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement