CComBSTR::ByteLength
Returns the number of bytes in m_str, excluding the terminating null character.
unsigned int ByteLength( ) const throw( );
Возвращаемое значение
The length of the m_str member in bytes.
Заметки
Returns 0 if m_str is NULL.
Пример
// string with 11 chars (22 bytes)
CComBSTR bstrTemp(OLESTR("Hello World"));
unsigned int len = bstrTemp.ByteLength();
ATLASSERT(len == 22);
Требования
Header: atlcomcli.h