| description | Learn more about: _bstr_t::copy | ||
|---|---|---|---|
| title | _bstr_t::copy | ||
| ms.date | 02/02/2021 | ||
| f1_keywords |
|
||
| helpviewer_keywords |
|
Microsoft Specific
Constructs a copy of the encapsulated BSTR.
BSTR copy( bool fCopy = true ) const;fCopy
If true, copy returns a copy of the contained BSTR, otherwise copy returns the actual BSTR.
Returns a newly allocated copy of the encapsulated BSTR object, or the encapsulated object itself, depending on the parameter.
STDMETHODIMP CAlertMsg::get_ConnectionStr(BSTR *pVal){ // m_bsConStr is _bstr_t
*pVal = m_bsConStr.copy();
}END Microsoft Specific