mycom.idl

来自「工欲善其事」· IDL 代码 · 共 43 行

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

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

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(A21A8C41-1266-11D4-A324-0040F6D487D9),
		dual,
		helpstring("IMyCom Interface"),
		pointer_default(unique)
	]
	interface IMyCom : IUnknown
	{
		[propget, helpstring("property Value")] HRESULT Value([out, retval] long *pVal);
		[propput, helpstring("property Value")] HRESULT Value([in] long newVal);
		[helpstring("method Raise")] HRESULT Raise(long Value);
	};


[
	uuid(A21A8C43-1266-11D4-A324-0040F6D487D9),
	version(1.0),
	helpstring("MyCom 1.0 Type Library")
]
library MyComLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(A21A8C42-1266-11D4-A324-0040F6D487D9),
		helpstring("MyCom Class")
	]
	coclass MyCom
	{
		[default] interface IMyCom;
	};
};

⌨️ 快捷键说明

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