home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / oleaut / spoly / cenumpt.h < prev    next >
C/C++ Source or Header  |  1997-10-05  |  1KB  |  46 lines

  1. /*** 
  2. *cenumpt.h
  3. *
  4. *  This is a part of the Microsoft Source Code Samples.
  5. *
  6. *  Copyright (C) 1992-1997 Microsoft Corporation. All rights reserved.
  7. *
  8. *  This source code is only intended as a supplement to Microsoft Development
  9. *  Tools and/or WinHelp documentation.  See these sources for detailed
  10. *  information regarding the Microsoft samples programs.
  11. *
  12. *Purpose:
  13. *  Definition of the CEnumPoint class.
  14. *
  15. *Implementation Notes:
  16. *
  17. *****************************************************************************/
  18.  
  19. class CEnumPoint : public IEnumVARIANT 
  20. {
  21. public:
  22.     static HRESULT Create(SAFEARRAY FAR* psa, CEnumPoint FAR* FAR* ppenum);
  23.  
  24.     /* IUnknown methods */
  25.     STDMETHOD(QueryInterface)(REFIID riid, void FAR* FAR* ppv);
  26.     STDMETHOD_(unsigned long, AddRef)(void);
  27.     STDMETHOD_(unsigned long, Release)(void);
  28.  
  29.     /* IEnumVARIANT methods */
  30.     STDMETHOD(Next)(unsigned long celt, VARIANT FAR* rgvar, unsigned long FAR* pceltFetched);
  31.     STDMETHOD(Skip)(unsigned long celt);
  32.     STDMETHOD(Reset)(void);
  33.     STDMETHOD(Clone)(IEnumVARIANT FAR* FAR* ppenum);
  34.  
  35.     CEnumPoint();
  36.  
  37. private:
  38.  
  39.     unsigned long m_refs;
  40.  
  41.     unsigned long m_celts;
  42.     unsigned long m_iCurrent;
  43.     SAFEARRAY FAR* m_psa;
  44. };
  45.  
  46.