_bstr_t::Detach
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at _bstr_t::Detach.
Microsoft Specific**
Returns the BSTR wrapped by a _bstr_t and detaches the BSTR from the _bstr_t.
BSTR Detach( ) throw;
The BSTR wrapped by the _bstr_t.
See _bstr_t::Assign for a example using Detach.
END Microsoft Specific
Show: