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

📄 bar.h

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

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


// IBar
[
	object,
	uuid("17F38B1C-9D6A-45BD-A441-32B2B1A35101"),
	dual,	helpstring("IBar Interface"),
	pointer_default(unique)
]
__interface IBar : IDispatch
{
	[id(1), helpstring("method Another")] HRESULT Another(void);
};



// CBar

[
	coclass,
	threading("apartment"),
	vi_progid("SimpleServer.Bar"),
	progid("SimpleServer.Bar.1"),
	version(1.0),
	uuid("2D6F34F8-1AFB-4149-A69E-63C4360BBD92"),
	helpstring("Bar Class")
]
class ATL_NO_VTABLE CBar : 
	public IBar
{
public:
	CBar()
	{
	}


	DECLARE_PROTECT_FINAL_CONSTRUCT()

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

public:

	STDMETHOD(Another)(void);
};

⌨️ 快捷键说明

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