Partilhar via


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: atlbase.h

See Also

Reference

CComBSTR Class

CComBSTR::Copy

Other Resources

CComBSTR Members