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

📄 multconnect.idl

📁 Thinkinc++English 电子书籍,英文版
💻 IDL
字号:
// MultConnect.idl : IDL source for MultConnect.dll
//

// This file will be processed by the MIDL tool to
// produce the type library (MultConnect.tlb) and marshalling code.

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(A75C7478-D981-4537-B68A-366828643784),
		dual,
		helpstring("IDispConnect Interface"),
		pointer_default(unique)
	]
	interface IDispConnect : IDispatch
	{
		[id(1), helpstring("method Add")] HRESULT Add([in] long n1, [in] long n2);
		[id(2), helpstring("method SetTimer")] HRESULT SetTimer([in] long uElapse);
		[id(3), helpstring("method KillTimer")] HRESULT KillTimer();
	};

[
	uuid(CAE0C68A-53E1-435C-AE93-F33F47826ABD),
	version(1.0),
	helpstring("MultConnect 1.0 Type Library")
]
library MULTCONNECTLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(F81DB93E-4F63-4A55-8114-A32BC78466D3),
		helpstring("_IDispConnectEvents Interface")
	]
	dispinterface _IDispConnectEvents
	{
		properties:
		methods:
		[id(1), helpstring("method Result")] HRESULT Result([in] long nVal);
	};
	[		// 第2个连接点接口,需要手工输入
		uuid(F81DB93F-4F63-4A55-8114-A32BC78466D3),	// 我比较偷懒,只手工修改了一下这个CLSID
		helpstring("_IDispConnectEvents2 Interface")
	]
	dispinterface _IDispConnectEvents2
	{
		properties:
		methods:
		[id(1), helpstring("method Timer")] HRESULT Timer([in] VARIANT varDate);
	};
	[
		uuid(9461BE82-0D64-4E3B-B0DB-2306D1BFE3F0),
		helpstring("DispConnect Class")
	]
	coclass DispConnect
	{
		[default] interface IDispConnect;
		[default, source] dispinterface _IDispConnectEvents;
		[source] dispinterface _IDispConnectEvents2;	//别忘了,这个也要手工输入
	};
};

⌨️ 快捷键说明

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