Takes a variant value and creates a new variant with a specified type.
HRESULT ChangeType( VARIANT* pvarDst, VARIANT* pvarSrc, LCID lcid, VARTYPE vtNew ); |
Parameters
- pvarDst
-
[in, out] A variant to contain the value represented by pvarSrc, but with the type specified by vtNew.
- pvarSrc
-
[in] A variant value to change into a new type.
- lcid
-
[in] The locale context to use when converting the arguments to or from strings.
- vtNew
-
[in] Specifies the type for pvarDst to become.