home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2001 June / VPR0106A.BIN / OLS / PREX102 / PrEx102.lzh / Src.lzh / DSAddIn.h < prev    next >
C/C++ Source or Header  |  2001-02-23  |  1KB  |  47 lines

  1. // DSAddIn.h : ヘッダー ファイル
  2. //
  3.  
  4. #if !defined(AFX_DSADDIN_H__93A93B8F_2ECF_4FA9_9466_948E0EB3582B__INCLUDED_)
  5. #define AFX_DSADDIN_H__93A93B8F_2ECF_4FA9_9466_948E0EB3582B__INCLUDED_
  6.  
  7. #include "commands.h"
  8.  
  9. // {E99F3828-60F1-4DDA-A484-5BCE8984CE35}
  10. DEFINE_GUID(CLSID_DSAddIn,
  11. 0xe99f3828, 0x60f1, 0x4dda, 0xa4, 0x84, 0x5b, 0xce, 0x89, 0x84, 0xce, 0x35);
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CDSAddIn
  15.  
  16. class CDSAddIn : 
  17.     public IDSAddIn,
  18.     public CComObjectRoot,
  19.     public CComCoClass<CDSAddIn, &CLSID_DSAddIn>
  20. {
  21. public:
  22.     DECLARE_REGISTRY(CDSAddIn, _T("Project Explorer AddIn"),
  23.         _T("PROJEXP Developer Studio Add-in"), IDS_PROJEXP_LONGNAME,
  24.         THREADFLAGS_BOTH)
  25.  
  26.     CDSAddIn() {}
  27.     BEGIN_COM_MAP(CDSAddIn)
  28.         COM_INTERFACE_ENTRY(IDSAddIn)
  29.     END_COM_MAP()
  30.     DECLARE_NOT_AGGREGATABLE(CDSAddIn)
  31.  
  32. // IDSAddIns
  33. public:
  34.     STDMETHOD(OnConnection)(THIS_ IApplication* pApp, VARIANT_BOOL bFirstTime,
  35.         long dwCookie, VARIANT_BOOL* OnConnection);
  36.     STDMETHOD(OnDisconnection)(THIS_ VARIANT_BOOL bLastTime);
  37.  
  38. protected:
  39.     CCommandsObj* m_pCommands;
  40.     DWORD m_dwCookie;
  41. };
  42.  
  43. //{{AFX_INSERT_LOCATION}}
  44. // Microsoft Visual C++ は前行の直前に追加の宣言を挿入します。
  45.  
  46. #endif // !defined(AFX_DSADDIN_H__93A93B8F_2ECF_4FA9_9466_948E0EB3582B__INCLUDED)
  47.