CString str="HeyLook";  char *pch =new char[str.GetLength()+1];  pch=str.GetBuffer(str.GetLength()+1); str.ReleaseBuffer(); //调用GetBuffer后一定要调用ReleaseBuffer  
cout<<pch<<endl;