CComBSTR::Length

Restituisce il numero di caratteri in m_str, escluso il carattere di terminazione null.

unsigned int Length( ) const throw( );

Valore restituito

La lunghezza del membro m_str.

Esempio

// string with 11 chars
CComBSTR bstrTemp(OLESTR("Hello World"));

unsigned int len = bstrTemp.Length();

ATLASSERT(len == 11);

Requisiti

Header: atlbase.h

Vedere anche

Riferimenti

CComBSTR (classe)