Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CComBSTR::ArrayToBSTR

 

Frees any existing string held in the CComBSTR object, then creates a BSTR from the first character of each element in the safearray and attaches it to the CComBSTR object.


      HRESULT ArrayToBSTR(
   const SAFEARRAY* pSrc 
) throw( );

pSrc

[in] The safearray containing the elements used to create the string.

S_OK on success, or any standard HRESULT error value.

Requirements

Header: atlbase.h

Show: