Compartilhar via


CComBSTR::Empty

Frees the m_str member.

void Empty( ) throw( );

Example

CComBSTR bstr(OLESTR("abc"));

// Calls SysFreeString to free the BSTR
bstr.Empty();
ATLASSERT(bstr.Length() == 0);   

Requirements

Header: atlbase.h

See Also

Reference

CComBSTR Class