_bstr_t::wchar_t*, _bstr_t::char*

 

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::wchar_t, _bstr_t::char.

Microsoft Specific**

Returns the BSTR characters as a narrow or wide character array.

  
      operator const wchar_t*( ) const throw( );   
operator wchar_t*( ) const throw( );   
operator const char*( ) const;   
operator char*( ) const;  

These operators can be used to extract the character data that is encapsulated by the BSTR object. Assigning a new value to the returned pointer does not modify the original BSTR data.

END Microsoft Specific

_bstr_t Class

Show: