CString str("I am trying!"); char *p = str.GetBuffer(str.GetLength()); /*在使用完p指针后,然后释放*/ str.ReleaseBuffer();