CString Right( int nCount ) const
throw( CMemoryException );
nCount
The number of characters to extract from this CString object.
Extracts the last (that is, rightmost) nCount characters from this CString object and returns a copy of the extracted substring. If nCount exceeds the string length, then the entire string is extracted.
Right is similar to the Basic RIGHT$ command (except that indexes are zero-based).
A CString object that contains a copy of the specified range of characters.
Note:
The returned CString object may be empty.
CString s( "abcdef" );
ASSERT( s.Right(3) == "def" );