windows programming

How to convert char* to LPCWSTR?

tomato13 2015. 10. 16. 09:31

http://stackoverflow.com/questions/19715144/how-to-convert-char-to-lpcwstr



LPCWSTR convertCharArrayToLPCWSTR(const char* charArray)

{

wchar_t* wString = new wchar_t[4096];

MultiByteToWideChar(CP_ACP, 0, charArray, -1, wString, 4096);

return wString;

}



'windows programming' 카테고리의 다른 글

CString => char* 변환  (0) 2008.03.04
fatal error C1010: unexpected end of file while looking for precompile  (0) 2008.03.04
Debug function  (0) 2008.02.29
CreateThread function  (0) 2008.02.13
dialog에 view 넣기  (0) 2008.02.12