Delete 함수 사용
Delete
함수 정의 Delete(int iIndex, int iCount = 1)
iIndex는 시작할 인덱스 위치, iCount는 제거할 문자 수.
CString strTemp = _T("Text,"); strTemp.Delete(0,1); // 이런 방식으로 사용해도 되고 strTemp.Delete(strTemp.GetLength() - 1); // 이렇게 사용하면 맨 끝에 문자 1개만 지워진다.