_bstr_t::copy
Microsoft Specific
Constructs a copy of the encapsulated BSTR
.
Syntax
BSTR copy( bool fCopy = true ) const;
Parameters
fCopy
If true
, copy
returns a copy of the contained BSTR
, otherwise copy
returns the actual BSTR
.
Remarks
Returns a newly allocated copy of the encapsulated BSTR
object, or the encapsulated object itself, depending on the parameter.
Example
STDMETHODIMP CAlertMsg::get_ConnectionStr(BSTR *pVal){ // m_bsConStr is _bstr_t
*pVal = m_bsConStr.copy();
}
END Microsoft Specific
See also
Athugasemdir
https://aka.ms/ContentUserFeedback.
Væntanlegt: Á árinu 2024 munum við hætta með GitHub-mál sem ábendingaleið fyrir efni og skipta því út fyrir nýtt ábendingakerfi. Frekari upplýsingar er að finna hér:Senda inn og skoða endurgjöf fyrir