csting专题

Csting Left Mid Right

 CString Left( int nCount ) const;                   //从左边1开始获取前 nCount 个字符 CString Mid( int nFirst ) const;                      //从左边第 nCount+1 个字符开始,获取后面所有的字符 CString Mid( int nFirst, int nC

CSting分配空间

CString strProcessPath; strProcessPath.GetBufferSetLength(MAX_PATH); strProcessPath.ReleaseBuffer();