1.CString 转为 LPCSTR CString strTmp = "abc"; LPCSTR pStr = (LPCSTR ) strTmp.GetBuffer(strTmp.GetLength());