摘要:
TCHAR->char的转换CString strData = _T("Hello");int len = WideCharToMultiByte(CP_ACP, 0, strData, -1, NULL, 0, NULL, NULL);char* szTarget = new char[len + 1];memset(szTarget, 0, len + 1);WideCharToMultiByte (CP_ACP, 0,strData, -1, szTarget, len, NULL,NULL);delete[] szTarget;CString->TCHA 阅读全文