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

📄 foo.h

📁 Visual_C++[1].NET_Bible1 Visual_C++宝典书中的全部源码
💻 H
字号:
// Foo.h : Declaration of the CFoo

#pragma once
#include "resource.h"       // main symbols


// IFoo
[
	object,
	uuid("C06D95D1-708A-4768-9E14-2B29923EBADD"),
	dual,	helpstring("IFoo Interface"),
	pointer_default(unique)
]
__interface IFoo : IDispatch
{
	[id(1), helpstring("method Something")] HRESULT Something(void);
};



// CFoo
[
	coclass,
	threading("apartment"),
	vi_progid("SimpleServer.Foo"),
	progid("SimpleServer.Foo.1"),
	version(1.0),
	uuid("A1F1E7D9-1C00-468F-898A-054AE9EF76AB"),
	helpstring("Foo Class")
]
class ATL_NO_VTABLE CFoo : 
	public IFoo
{
public:
	CFoo()
	{
	}

	DECLARE_PROTECT_FINAL_CONSTRUCT()

	HRESULT FinalConstruct()
	{
		return S_OK;
	}
	
	void FinalRelease() 
	{
	}

public:

	STDMETHOD(Something)(void);
};

⌨️ 快捷键说明

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