All Frameworks  Class Hierarchy  This Framework  Indexes

System Global Function ConvertVariant


HRESULT ConvertVariant( const CATVariant& iVar,
CATBaseDispatch*& oObject)
Converts a CATVariant into a C++ CATBaseDispatch.
Parameters:
iVar
the CATVariant to convert
oObject
a C++ CATBaseDispatch pointer where the converted value will be stored.
Lifecycle rules deviation:the reference count of the CATBaseDispatch object returned is not altered, so there is no need to call Release on this object after the ConvertVariant call.
Returns:
S_OK upon success, E_FAIL if the CATVariant did not actually contain a CATBaseDispatch.

This object is included in the file: CATAutoConversions.h

Copyright © 2003, Dassault Systèmes. All rights reserved.