_bstr_t::copy
Microsoft Specific
BSTR copy( ) const throw(_com_error);
Remarks
Returns a newly allocated copy of the encapsulated BSTR object.
Example
STDMETHODIMP CAlertMsg::get_ConnectionStr(BSTR *pVal){ // m_bsConStr is _bstr_t *pVal = m_bsConStr.copy(); }
END Microsoft Specific