| title | _bstr_t::copy | Microsoft Docs | ||
|---|---|---|---|
| ms.custom | |||
| ms.date | 11/04/2016 | ||
| ms.reviewer | |||
| ms.suite | |||
| ms.technology |
|
||
| ms.tgt_pltfrm | |||
| ms.topic | language-reference | ||
| f1_keywords |
|
||
| dev_langs |
|
||
| helpviewer_keywords |
|
||
| ms.assetid | 00ba7311-e82e-4a79-8106-5329fa2f869a | ||
| caps.latest.revision | 6 | ||
| author | mikeblome | ||
| ms.author | mblome | ||
| manager | ghogen |
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.
STDMETHODIMP CAlertMsg::get_ConnectionStr(BSTR *pVal){ // m_bsConStr is _bstr_t
*pVal = m_bsConStr.copy();
}
END Microsoft Specific