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

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