CString转化到char*

14年前
  char* cstringCovertChar(CString str){               int strLength = str.GetLength() + 1;               char *pValue = new char[strLength];               strncpy(pValue, str, strLength);               return pValue;      }