Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic


Microsoft Specific

Constructs a copy of the encapsulated BSTR.

BSTR copy(
  bool fCopy = true
) const;



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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.