home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / inproc / server / varmap.h < prev   
C/C++ Source or Header  |  1998-04-02  |  2KB  |  72 lines

  1. // varmap.h : header file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CVariantMap command target
  15.  
  16. class CVariantMap : public CCmdTarget
  17. {
  18.     DECLARE_DYNCREATE(CVariantMap)
  19. protected:
  20.     CVariantMap();           // protected constructor used by dynamic creation
  21.  
  22. // Attributes
  23. public:
  24.     CString m_str2;
  25.     long m_i2;
  26.  
  27. // Operations
  28. public:
  29.  
  30. // Overrides
  31.     // ClassWizard generated virtual function overrides
  32.     //{{AFX_VIRTUAL(CVariantMap)
  33.     public:
  34.     virtual void OnFinalRelease();
  35.     //}}AFX_VIRTUAL
  36.  
  37. // Implementation
  38. protected:
  39.     virtual ~CVariantMap();
  40.     CMapVariantToVariant m_map;
  41.  
  42.     // Generated message map functions
  43.     //{{AFX_MSG(CVariantMap)
  44.         // NOTE - the ClassWizard will add and remove member functions here.
  45.     //}}AFX_MSG
  46.  
  47.     DECLARE_MESSAGE_MAP()
  48.     DECLARE_OLECREATE(CVariantMap)
  49.  
  50.     // Generated OLE dispatch map functions
  51.     //{{AFX_DISPATCH(CVariantMap)
  52.     CString m_str1;
  53.     long m_i1;
  54.     afx_msg BSTR GetStr2();
  55.     afx_msg void SetStr2(LPCTSTR lpszNewValue);
  56.     afx_msg long GetI2();
  57.     afx_msg void SetI2(long nNewValue);
  58.     afx_msg long GetCount();
  59.     afx_msg void SetAt(const VARIANT FAR& from, const VARIANT FAR& to);
  60.     afx_msg void RemoveAll();
  61.     afx_msg void RemoveKey(const VARIANT FAR& key);
  62.     afx_msg BOOL IsEmpty();
  63.     afx_msg VARIANT GetItem(const VARIANT FAR& from);
  64.     //}}AFX_DISPATCH
  65.     DECLARE_DISPATCH_MAP()
  66.     afx_msg LPUNKNOWN GetNewEnum();
  67.  
  68.     DECLARE_INTERFACE_MAP()
  69. };
  70.  
  71. /////////////////////////////////////////////////////////////////////////////
  72.