ITcTypeInstance6::GetValueToString

Formats a value buffer as text. A one-dimensional VARIANT of type VT_ARRAY | VT_UI1 is expected. The bytes contained therein are interpreted as a binary representation of the type.

Signature

HRESULT GetValueToString(VARIANT data, ULONG formatIdx, BSTR* pToString);

Parameter

Name

Type

Description

data

VARIANT

[in] One-dimensional byte SAFEARRAY containing the value to be formatted.

formatIdx

ULONG

[in, defaultvalue(0)] 0-based format index.

Return value

Name

Type

Description

pToString

BSTR*

[out, retval] Formatted text value.

(HRESULT)

HRESULT

S_OK if successful, otherwise an error code.

Error codes

See also