DSADDIN.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- // DSAddIn.h : header file
- //
- #if !defined(AFX_DSADDIN_H__36FDE874_EA61_11D0_B595_00A0C91BC942__INCLUDED_)
- #define AFX_DSADDIN_H__36FDE874_EA61_11D0_B595_00A0C91BC942__INCLUDED_
- #include "commands.h"
- // {36FDE861-EA61-11D0-B595-00A0C91BC942}
- DEFINE_GUID(CLSID_DSAddIn,
- 0x36fde861, 0xea61, 0x11d0, 0xb5, 0x95, 0, 0xa0, 0xc9, 0x1b, 0xc9, 0x42);
- /////////////////////////////////////////////////////////////////////////////
- // CDSAddIn
- class CDSAddIn :
- public IDSAddIn,
- public CComObjectRoot,
- public CComCoClass<CDSAddIn, &CLSID_DSAddIn>
- {
- public:
- DECLARE_REGISTRY(CDSAddIn, "Bldrec.DSAddIn.1",
- "BLDREC Developer Studio Add-in", IDS_BLDREC_LONGNAME,
- THREADFLAGS_BOTH)
- CDSAddIn() {}
- BEGIN_COM_MAP(CDSAddIn)
- COM_INTERFACE_ENTRY(IDSAddIn)
- END_COM_MAP()
- DECLARE_NOT_AGGREGATABLE(CDSAddIn)
- // IDSAddIns
- public:
- STDMETHOD(OnConnection)(THIS_ IApplication* pApp, VARIANT_BOOL bFirstTime,
- long dwCookie, VARIANT_BOOL* OnConnection);
- STDMETHOD(OnDisconnection)(THIS_ VARIANT_BOOL bLastTime);
- protected:
- CCommandsObj* m_pCommands;
- DWORD m_dwCookie;
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DSADDIN_H__36FDE874_EA61_11D0_B595_00A0C91BC942__INCLUDED)