Function that safely converts a 'WCHAR' String to 'LPSTR
摘要:
Function that safely converts a 'WCHAR' String to 'LPSTR':char* ConvertLPWSTRToLPSTR (LPWSTR lpwszStrIn){ LPSTR pszOut = NULL; if (lpwszStrIn != NULL) {int nInputStrLen = wcslen (lpwszStrIn);// Double NULL Terminationint nOutputStrLen = WideCharToMultiByte (CP_ACP, 0, lpwszStrIn, nIn 阅读全文
posted @ 2013-03-21 17:32 coolbox 阅读(83) 评论(0) 推荐(0) 编辑