Index   Commented   Search   About

IEnumVARIANT Interface

Implemented by
Used by
Header filename
Applications that
expose collections
of objects.
Applications that
access collections
of objects.
OLEAUTO.H (32-bit systems)
DISPATCH.H (16-bit systems)

The IEnumVARIANT interface provides a method for enumerating a collection of variants, including heterogeneous collections of objects and intrinsic types. Callers of this interface need not know the specific type, or types, of the elements in the collection.

The following is the definition that results from expanding the parameterized type IEnumVARIANT:

interface IEnumVARIANT : IUnknown {

  • irtual HRESULT Next(unsigned long celt,
    VARIANT FAR* rgvar,
    unsigned long FAR* pceltFetched) = 0;

  • irtual HRESULT Skip(unsigned long celt) = 0;

  • irtual HRESULT Reset() = 0;

  • irtual HRESULT Clone(IEnumVARIANT FAR* FAR* ppenum) = 0;

};

See the sample file ENUMVAR.CPP in the Lines sample to see how to implement a collection of objects using IEnumVARIANT.

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder

More Online Helps

Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun