simple18.idl

来自「Thinkinc++English 电子书籍,英文版」· IDL 代码 · 共 43 行

IDL
43
字号
// Simple18.idl : IDL source for Simple18.dll
//

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

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(E9BA8A9A-6422-4D6B-92C3-D028710B2A68),
		dual,
		helpstring("IProperty Interface"),
		pointer_default(unique)
	]
	interface IProperty : IDispatch
	{
		[propget, id(1), helpstring("property str")] HRESULT str([out, retval] BSTR *pVal);
		[propput, id(1), helpstring("property str")] HRESULT str([in] BSTR newVal);
		[propget, id(2), helpstring("property integer")] HRESULT integer([out, retval] long *pVal);
		[propput, id(2), helpstring("property integer")] HRESULT integer([in] long newVal);
	};

[
	uuid(88BD897C-A170-4D70-8141-65CA06228A2B),
	version(1.0),
	helpstring("Simple18 1.0 Type Library")
]
library SIMPLE18Lib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(94F05861-D450-4A8B-87AD-8D9C835C43FE),
		helpstring("Property Class")
	]
	coclass Property
	{
		[default] interface IProperty;
	};
};

⌨️ 快捷键说明

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