Freigeben über


CComBSTR::operator =

Sets the m_str member to a copy of pSrc or to a copy of the BSTR member of src.

CComBSTR& operator =(
   const CComBSTR& src 
);
CComBSTR& operator =(
   LPCOLESTR pSrc 
);
CComBSTR& operator =(
   LPCSTR pSrc 
);

Remarks

The pSrc parameter specifies either an LPCOLESTR for Unicode versions or LPCSTR for ANSI versions.

Example

See the example for CComBSTR::Copy.

Requirements

Header: atlcomcli.h

See Also

Concepts

CComBSTR Class

CComBSTR Members

CComBSTR::Copy