CString转化到char*

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