Created
October 6, 2015 13:18
-
-
Save jsxinvivo/11f383ac61a56c1c0c25 to your computer and use it in GitHub Desktop.
convert char* to LPCWSTR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wchar_t *convertCharArrayToLPCWSTR(const char* charArray) | |
{ | |
wchar_t* wString=new wchar_t[4096]; | |
MultiByteToWideChar(CP_ACP, 0, charArray, -1, wString, 4096); | |
return wString; | |
} |
Works nice, ty!
thnq
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It works very well
Thanks