摘要: 在unicode环境下,将CString转为char*的常用方法为使用WideCharToMultiByte函数:CString temp("abcde");int lenth = temp.GetLength();char *prog = new char[lenth];prog[lenth] = '\0';WideCharToMultiByte(CP_ACP, 0, temp.GetBuffer(0), temp.GetLength(), prog, temp.GetLength(), 0, 0); 阅读全文