home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / addins / api2help / commands.h < prev    next >
C/C++ Source or Header  |  1998-04-02  |  1KB  |  43 lines

  1. // Commands.h : header file
  2. //
  3.  
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6.  
  7.  
  8. #if !defined(AFX_COMMANDS_H__17A222A8_431B_11D0_B88F_00C04FD7A0F0__INCLUDED_)
  9. #define AFX_COMMANDS_H__17A222A8_431B_11D0_B88F_00C04FD7A0F0__INCLUDED_
  10.  
  11. #include "API2HelpTypes.h"
  12.  
  13. class CCommands :
  14.     public CComDualImpl<ICommands, &IID_ICommands, &LIBID_API2Help>,
  15.     public CComObjectRoot,
  16.     public CComCoClass<CCommands, &CLSID_Commands>
  17. {
  18. protected:
  19.     IApplication* m_pApplication;
  20.  
  21. public:
  22.     CCommands();
  23.     ~CCommands();
  24.     void SetApplicationObject(IApplication* m_pApplication);
  25.  
  26.     BEGIN_COM_MAP(CCommands)
  27.         COM_INTERFACE_ENTRY(IDispatch)
  28.         COM_INTERFACE_ENTRY(ICommands)
  29.     END_COM_MAP()
  30.     DECLARE_NOT_AGGREGATABLE(CCommands)
  31.  
  32. public:
  33. // ICommands methods
  34.     STDMETHOD(API2HelpCommandMethod)(THIS);
  35. };
  36.  
  37. typedef CComObject<CCommands> CCommandsObj;
  38.  
  39. //{{AFX_INSERT_LOCATION}}
  40. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  41.  
  42. #endif // !defined(AFX_COMMANDS_H__17A222A8_431B_11D0_B88F_00C04FD7A0F0__INCLUDED)
  43.