다음을 통해 공유


CComBSTR::ByteLength

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

unsigned int ByteLength( ) const throw( );

반환 값

길이 m_str 구성원 (바이트)에서입니다.

설명

경우 반환 0 m_strNULL.

예제

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

unsigned int len = bstrTemp.ByteLength();

ATLASSERT(len == 22);   

요구 사항

헤더: atlbase.h

참고 항목

참조

CComBSTR 클래스

CComBSTR::Length