description Learn more about: _bstr_t::length title _bstr_t::length ms.date 02/02/2021 f1_keywords _bstr_t::length helpviewer_keywords length method [C++] BSTR object [C++], length _bstr_t::length Microsoft Specific Returns the number of characters in the _bstr_t, not including the terminating null, of the encapsulated BSTR. Syntax unsigned int length ( ) const throw( ); Remarks END Microsoft Specific See also _bstr_t class