CString转char*

CString str("I am trying!");

char *p = str.GetBuffer(str.GetLength());

/*在使用完p指针后,然后释放*/

str.ReleaseBuffer();

原文地址:https://www.cnblogs.com/java20130722/p/3207220.html