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 |
formatIdx | ULONG | [in, defaultvalue(0)] 0-based format index. |
Return value
Name | Type | Description |
|---|---|---|
pToString | BSTR* | [out, retval] Formatted text value. |
(HRESULT) | HRESULT |
|
Error codes
-
E_POINTER:pToStringisNULL. -
ADS_E_ERROR:datadoes not have the expected format or could not be blocked.
See also
- SetValueToString