testcomobject1.idl

来自「大学毕业前的最后一学期」· IDL 代码 · 共 42 行

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

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

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(516FAB03-BB53-4FB9-81BA-8E3191EC398D),
		dual,
		helpstring("ITestInterface1 Interface"),
		pointer_default(unique)
	]
	interface ITestInterface1 : IDispatch
	{
		[id(1), helpstring("method TestFunc1")] HRESULT TestFunc1();
	};


[
	uuid(AA727207-4883-499E-B97B-35E362D8A331),
	version(1.0),
	helpstring("TestComObject1 1.0 Type Library")
]
library TESTCOMOBJECT1Lib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(9864C676-DF91-4C1F-8E2F-3B9723CC70C4),
		helpstring("TestInterface1 Class")
	]
	coclass TestInterface1
	{
		[default] interface ITestInterface1;
	};

};

⌨️ 快捷键说明

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