COMMANDS.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- // Commands.h : header file
- //
- #if !defined(AFX_COMMANDS_H__1433431E_B34A_11D0_A217_244106C10000__INCLUDED_)
- #define AFX_COMMANDS_H__1433431E_B34A_11D0_A217_244106C10000__INCLUDED_
- #include "ReplAllTypes.h"
- class CCommands :
- public CComDualImpl<ICommands, &IID_ICommands, &LIBID_ReplAll>,
- public CComObjectRoot,
- public CComCoClass<CCommands, &CLSID_Commands>
- {
- protected:
- IApplication* m_pApplication;
- public:
- CCommands();
- ~CCommands();
- void SetApplicationObject(IApplication* m_pApplication);
- BEGIN_COM_MAP(CCommands)
- COM_INTERFACE_ENTRY(IDispatch)
- COM_INTERFACE_ENTRY(ICommands)
- END_COM_MAP()
- DECLARE_NOT_AGGREGATABLE(CCommands)
- public:
- // ICommands methods
- STDMETHOD(ReplAllCommandMethod)(THIS);
- };
- typedef CComObject<CCommands> CCommandsObj;
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_COMMANDS_H__1433431E_B34A_11D0_A217_244106C10000__INCLUDED)