다음을 통해 공유


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( );

Parameters

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

Return Value

S_OK on success, or any standard HRESULT error value.

Requirements

Header: atlbase.h

See Also

Reference

CComBSTR Class