Passing Variant Parameters in OLE AutomationLast reviewed: August 5, 1996Article ID: Q104960 |
The information in this article applies to:
A variant must be initialized using VariantInit after creation and before it is passed to a function. A variant with a valid value must be cleared using VariantClear before a new value is assigned to it. A variant must be passed to or from a function in a valid state and the contents of the variant must be correctly freed. This requires that the following be done:
Passing an uninitialized variant to a function is a common error. This may cause problems when the VariantClear call in the function tries to free the contents of the uninitialized variant based on the undefined value of the vt field.
|
Additional reference words: 2.00 2.01 3.50 4.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |