/************************************************************************/
/* char*转CString */
/************************************************************************/
void pCharToCString(char* dChar, CString str)
{
int nMultiByteLen = WideCharToMultiByte(CP_ACP, 0, str, -1, dChar, 0, NULL, NULL);
WideCharToMultiByte(CP_ACP, 0, str, -1, dChar, nMultiByteLen, NULL, NULL);
dChar[nMultiByteLen]=0;
}
【框架-MFC】char*转CString
最新推荐文章于 2020-11-29 10:21:31 发布