Converts a VARIANT structure to a string.
Syntax
HRESULT GetStringForVariant( VARIANT *pvar, BSTR *pbstrValue );
Parameters
- pvar
- [in] Address of a VARIANT structure to be converted.
- pbstrValue
- [out] Address of a string that contains the converted VARIANT structure.
Return Value
Returns S_OK if successful, or an error code otherwise.