_bstr_t::wchar_t*、_bstr_t::char*

Microsoft 专用

将 BSTR 字符作为一个窄字符数组或宽字符数组返回。

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

备注

这些运算符可用于提取由 BSTR 对象封装的字符数据。 为返回的指针赋予新值不会修改原始 BSTR 数据。

结束 Microsoft 专用

请参见

参考

_bstr_t 类