DSADDIN.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:

Windows编程

开发平台:

Visual C++

  1. // DSAddIn.h : header file
  2. //
  3. #if !defined(AFX_DSADDIN_H__36FDE874_EA61_11D0_B595_00A0C91BC942__INCLUDED_)
  4. #define AFX_DSADDIN_H__36FDE874_EA61_11D0_B595_00A0C91BC942__INCLUDED_
  5. #include "commands.h"
  6. // {36FDE861-EA61-11D0-B595-00A0C91BC942}
  7. DEFINE_GUID(CLSID_DSAddIn,
  8. 0x36fde861, 0xea61, 0x11d0, 0xb5, 0x95, 0, 0xa0, 0xc9, 0x1b, 0xc9, 0x42);
  9. /////////////////////////////////////////////////////////////////////////////
  10. // CDSAddIn
  11. class CDSAddIn : 
  12. public IDSAddIn,
  13. public CComObjectRoot,
  14. public CComCoClass<CDSAddIn, &CLSID_DSAddIn>
  15. {
  16. public:
  17. DECLARE_REGISTRY(CDSAddIn, "Bldrec.DSAddIn.1",
  18. "BLDREC Developer Studio Add-in", IDS_BLDREC_LONGNAME,
  19. THREADFLAGS_BOTH)
  20. CDSAddIn() {}
  21. BEGIN_COM_MAP(CDSAddIn)
  22. COM_INTERFACE_ENTRY(IDSAddIn)
  23. END_COM_MAP()
  24. DECLARE_NOT_AGGREGATABLE(CDSAddIn)
  25. // IDSAddIns
  26. public:
  27. STDMETHOD(OnConnection)(THIS_ IApplication* pApp, VARIANT_BOOL bFirstTime,
  28. long dwCookie, VARIANT_BOOL* OnConnection);
  29. STDMETHOD(OnDisconnection)(THIS_ VARIANT_BOOL bLastTime);
  30. protected:
  31. CCommandsObj* m_pCommands;
  32. DWORD m_dwCookie;
  33. };
  34. //{{AFX_INSERT_LOCATION}}
  35. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  36. #endif // !defined(AFX_DSADDIN_H__36FDE874_EA61_11D0_B595_00A0C91BC942__INCLUDED)