CComBSTR::Length
Devuelve el número de caracteres de m_str, excepto el carácter null de terminación.
unsigned int Length( ) const throw( );
Valor devuelto
La longitud del miembro de m_str .
Ejemplo
// string with 11 chars
CComBSTR bstrTemp(OLESTR("Hello World"));
unsigned int len = bstrTemp.Length();
ATLASSERT(len == 11);
Requisitos
encabezado: atlbase.h