|
// DSAddin.h : Declaration of the CDSAddin
#ifndef __$$ADDIN_OBJNAME$$_H_
#define __$$ADDIN_OBJNAME$$_H_
#include "resource.h" // main symbols
#include "Commands.h"
/////////////////////////////////////////////////////////////////////////////
// CDSAddin
class ATL_NO_VTABLE C$$ADDIN_OBJNAME$$ :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<C$$ADDIN_OBJNAME$$, &CLSID_$$ADDIN_OBJNAME$$>,
public IDSAddIn
{
public:
DECLARE_REGISTRY_RESOURCEID(IDR_$$ADDIN_OBJNAME$$)
DECLARE_NOT_AGGREGATABLE(C$$ADDIN_OBJNAME$$)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(C$$ADDIN_OBJNAME$$)
COM_INTERFACE_ENTRY(IDSAddIn)
END_COM_MAP()
private:
CCommandsObj* m_pCommands;
// IDSAddin
public:
STDMETHOD(OnConnection)(THIS_ IApplication* pApp, VARIANT_BOOL bFirstTime, long dwCookie, VARIANT_BOOL* OnConnection);
STDMETHOD(OnDisconnection)(THIS_ VARIANT_BOOL bLastTime);
};
#endif //__DSADDIN_H_
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.