字符串转换_BSTR/LPSTR/LPWSTR/Char
摘要: int nAnsiLen = strlen(szText);
int nUniLen = MultiByteToWideChar(CP_ACP , MB_PRECOMPOSED , szText , nAnsiLen ,
NULL , 0);
LPWSTR pUnicode = (LPWSTR) LocalAlloc(LPTR , nUniLen);
MultiByteToWideChar(CP_ACP , MB_PRECOMPOSED , szText , nAnsiLen ,
pUnicode , nUniLen);
阅读全文
posted @
2008-08-10 10:26 cpsprogramer 阅读(19329) |
评论 (1) 编辑