COleVariant::Detach

Call this member function to detach the underlying VARIANT object from this COleVariant object. This function sets the VARTYPE for this COleVariant object to VT_EMPTY. After calling Detach, it is the caller's responsibility to call VariantClear on the resulting VARIANT structure.

Syntax

VARIANT Detach( );

At a Glance

Header file: Afxdisp.h
Platforms:
Versions: 2.0 and later
Complete documentation: Visual C++ documentation

See Also

COleVariant Overview, COleVariant Member Functions, Automation Types, VariantClear, VARIANT, VARTYPE