Share via


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 Function entries in the Windows SDK.

Requirements

Header: afxdisp.h

See Also

Reference

COleVariant Class

Hierarchy Chart

COleVariant::operator =