Export (0) Print
Expand All

VariantInit Function

Initializes a variant.

VOID VariantInit(
  VARIANTARG   *pvarg
);

pvarg

Pointer to the VARIANTARG that will be initialized.

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).

for(i = 0; i < celt; ++i)
   VariantInit(&rgvar[i]);
Show:
© 2014 Microsoft