logbookeventclass.h

来自「中间件编写示例 COM与.NET组件服务」· C头文件 代码 · 共 39 行

H
39
字号
// LogbookEventClass.h : Declaration of the CLogbookEventClass

#ifndef __LOGBOOKEVENTCLASS_H_
#define __LOGBOOKEVENTCLASS_H_

#include "resource.h"       // main symbols

/////////////////////////////////////////////////////////////////////////////
// CLogbookEventClass
class ATL_NO_VTABLE CLogbookEventClass : 
	public CComObjectRootEx<CComMultiThreadModel>,
	public CComCoClass<CLogbookEventClass, &CLSID_LogbookEventClass>,
	public ILogbook
{
public:
	CLogbookEventClass()
	{
	}

DECLARE_REGISTRY_RESOURCEID(IDR_LOGBOOKEVENTCLASS)

DECLARE_PROTECT_FINAL_CONSTRUCT()

BEGIN_COM_MAP(CLogbookEventClass)
	COM_INTERFACE_ENTRY(ILogbook)
END_COM_MAP()

// ILogbook
public:
   //ATLASSERT(0) since this class should never be called directly
   STDMETHOD(LogEvent) (LOG_ENTRY* ){ATLASSERT(0);return E_NOTIMPL;};
	STDMETHOD(LogMethod)(LOG_ENTRY* ){ATLASSERT(0);return E_NOTIMPL;};
	STDMETHOD(LogError) (LOG_ENTRY* ){ATLASSERT(0);return E_NOTIMPL;};

public:
};

#endif //__LOGBOOKEVENTCLASS_H_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?