activitytest.idl

来自「【内容简介】 本书由一流的权威撰写」· IDL 代码 · 共 42 行

IDL
42
字号
// ActivityTest.idl : IDL source for ActivityTest.dll
//

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

import "oaidl.idl";
import "ocidl.idl";
	
	[
		object,
		uuid(42141798-AB42-4AF1-B752-8FF5E6C12717),
		dual,
		helpstring("IMyTest Interface"),
		pointer_default(unique)
	]
	interface IMyTest : IDispatch
	{
		[id(1), helpstring("method DoIt")] HRESULT DoIt();
	};

[
	uuid(714BBB96-E9AF-4590-B59F-598878188106),
	version(1.0),
	helpstring("ActivityTest 1.0 Type Library")
]
library ACTIVITYTESTLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	
	[
		uuid(132CBDFA-F567-409B-8CFC-0EF6A9D81827),
		helpstring("MyTest Class")
	]
	coclass MyTest
	{
		[default] interface IMyTest;
	};
};

⌨️ 快捷键说明

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