次の方法で共有


_bstr_t::GetAddress

Microsoft Specific

Points to the BSTR wrapped by a _bstr_t.

BSTR* GetAddress( );

Return Value

A pointer to the BSTR wrapped by the _bstr_t.

Remarks

GetAddress affects all _bstr_t objects that share a BSTR. More than one _bstr_t can share a BSTR through the use of the copy constructor and and operator=.

Example

See _bstr_t::Assign for a example using GetAddress.

END Microsoft Specific

See Also

Concepts

_bstr_t Class