Freigeben über


COleVariant::ChangeType

Converts the type of variant value in this COleVariant object.

void ChangeType(
   VARTYPE vartype,
   LPVARIANT pSrc = NULL 
);

Parameters

  • vartype
    The VARTYPE for this COleVariant object.

  • pSrc
    A pointer to the VARIANT object to be converted. If this value is NULL, this COleVariant object is used as the source for the conversion.

Remarks

For more information, see the VARIANT, VARTYPE, and VariantChangeType entries in the Windows SDK.

Requirements

Header: afxdisp.h

See Also

Concepts

COleVariant Class

COleVariant Members

Hierarchy Chart

COleVariant::operator =