⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mycount.h

📁 【内容简介】 本书由一流的权威撰写
💻 H
字号:
// MyCount.h: Definition of the CMyCount class
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYCOUNT_H__805A275E_6453_47F6_BA10_FACDCE87E97B__INCLUDED_)
#define AFX_MYCOUNT_H__805A275E_6453_47F6_BA10_FACDCE87E97B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "resource.h"       // main symbols

/////////////////////////////////////////////////////////////////////////////
// CMyCount

class CMyCount : 
	public IDispatchImpl<IMyCount, &IID_IMyCount, &LIBID_GLOBALCOUNTLib>, 
	public ISupportErrorInfo,
	public CComObjectRoot,
	public CComCoClass<CMyCount,&CLSID_MyCount>
{
public:
	CMyCount() {}
BEGIN_COM_MAP(CMyCount)
	COM_INTERFACE_ENTRY(IDispatch)
	COM_INTERFACE_ENTRY(IMyCount)
	COM_INTERFACE_ENTRY(ISupportErrorInfo)
END_COM_MAP()
//DECLARE_NOT_AGGREGATABLE(CMyCount) 
// Remove the comment from the line above if you don't want your object to 
// support aggregation. 

DECLARE_REGISTRY_RESOURCEID(IDR_MyCount)
// ISupportsErrorInfo
	STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);

// IMyCount
public:
	STDMETHOD(IncrementCount)(/*[in]*/ long nValue);
	STDMETHOD(GetCount)(/*[out, retval]*/ long* plCount);
};

#endif // !defined(AFX_MYCOUNT_H__805A275E_6453_47F6_BA10_FACDCE87E97B__INCLUDED_)

⌨️ 快捷键说明

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