ITcTypeInstance6::GetValueToString

Formatiert einen Wertpuffer als Text. Erwartet wird ein eindimensionales VARIANT vom Typ VT_ARRAY | VT_UI1. Die darin enthaltenen Bytes werden als Binärrepräsentation des Typs interpretiert.

Signatur

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

Parameter

Name

Typ

Beschreibung

data

VARIANT

[in] Eindimensionales Byte-SAFEARRAY mit dem zu formatierenden Wert.

formatIdx

ULONG

[in, defaultvalue(0)] 0-basierter Formatindex.

Rückgabewert

Name

Typ

Beschreibung

pToString

BSTR*

[out, retval] Formatierter Textwert.

(HRESULT)

HRESULT

S_OK bei Erfolg, sonst Fehlercode.

Fehlercodes

Siehe auch