Component Automation
VariantInit

Initializes a variant.

Visual C++
VOID VariantInit(
  VARIANTARG   *pvarg
);
Parameter

pvarg

Pointer to the VARIANTARG that will be initialized.

Comments

The VariantInit function initializes the VARIANTARG by setting the vt field to VT_EMPTY. Unlike VariantClear, this function does not interpret the current contents of the VARIANTARG. Use VariantInit to initialize new local variables of type VARIANTARG (or VARIANT).

Example

for(i = 0; i < celt; ++i)
   VariantInit(&rgvar[i]);
See Also

Concepts

Tags :


Page view tracker