Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 
);

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

Show: