CComBSTR::AssignBSTR

 

Assigns a BSTR to m_str.

Syntax

      HRESULT AssignBSTR(
   const BSTR bstrSrc 
) throw( );

Parameters

  • bstrSrc
    [in] A BSTR to assign to the current CComBSTR object.

Return Value

S_OK on success, or any standard HRESULT error value.

Requirements

Header: atlbase.h

See Also

CComBSTR Class