Returns the number of characters in the CSimpleStringT object.

int GetLength( ) const throw( );

A count of the characters in the string.

Call this method to return the number of characters in the object. The count does not include a null terminator.

For multibyte character sets (MBCS), GetLength counts each 8-bit character; that is, a lead and trail byte in one multibyte character are counted as two bytes. See FreeExtra for an example of calling this function.


Header: atlsimpstr.h

© 2016 Microsoft