| title | _bstr_t::GetAddress | Microsoft Docs | |
|---|---|---|
| ms.custom | ||
| ms.date | 11/04/2016 | |
| ms.reviewer | ||
| ms.suite | ||
| ms.technology |
|
|
| ms.tgt_pltfrm | ||
| ms.topic | language-reference | |
| f1_keywords |
|
|
| dev_langs |
|
|
| helpviewer_keywords |
|
|
| ms.assetid | 09bc9180-867e-4ee5-b22a-8339dc663142 | |
| caps.latest.revision | 7 | |
| author | mikeblome | |
| ms.author | mblome | |
| manager | ghogen |
Microsoft Specific
Frees any existing string and returns the address of a newly allocated string.
BSTR* GetAddress( );
A pointer to the BSTR wrapped by the _bstr_t.
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=.
See _bstr_t::Assign for a example using GetAddress.
END Microsoft Specific