다음을 통해 공유


CComBSTR::Length

문자 수를 반환 합니다. m_str, 종료 null 문자를 제외 합니다.

unsigned int Length( ) const throw( );

반환 값

길이 m_str 멤버입니다.

예제

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

unsigned int len = bstrTemp.Length();

ATLASSERT(len == 11);

요구 사항

헤더: atlbase.h

참고 항목

참조

CComBSTR 클래스