testserver.idl

来自「中间件编写示例 COM与.NET组件服务」· IDL 代码 · 共 40 行

IDL
40
字号
// TestServer.idl : IDL source for TestServer.dll
//

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

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(8E1B35A1-0868-442B-B94A-7968EB68D566),
		dual,
		helpstring("ITestLog Interface"),
		pointer_default(unique)
	]
	interface ITestLog : IDispatch
	{
		[id(1), helpstring("method DoSomething")] HRESULT DoSomething();
	};

[
	uuid(5352959D-CC5F-4103-8A83-3F4BE7A6838E),
	version(1.0),
	helpstring("TestServer 1.0 Type Library")
]
library TESTSERVERLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(A30E8320-C0B4-4C0B-91C7-60DCF6BABAB3),
		helpstring("TestLog Class")
	]
	coclass TestLog
	{
		[default] interface ITestLog;
	};
};

⌨️ 快捷键说明

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