Guest_imported
New member
- Jan 1, 1970
- 0
Is there a way to convert a char (or CString) into LPCWSTR.
Thanx.
Thanx.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
const int MAXSIZE = 512;
CString appName="Test App";
CString cwd="C://windows";
unsigned short appNameLPCW[512]; // alloc 1Kb output buffer!
unsigned short cwdLPCW[512];
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, appName, -1, appNameLPCW, MAX_SIZE);
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, cwd, -1, cwdLPCW, MAX_SIZE);