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.
VARIANT Detach( );
Header file: | Afxdisp.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation: | Visual C++ documentation |
COleVariant Overview, COleVariant Member Functions, Automation Types, VariantClear, VARIANT, VARTYPE