myaddin.idl

来自「最近因为工作的需要」· IDL 代码 · 共 40 行

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

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

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(6EEF6FAC-DAC2-4B1E-AC01-7A710054A1B0),
		dual,
		helpstring("IWordAddin Interface"),
		pointer_default(unique)
	]
	interface IWordAddin : IDispatch
	{
		[id(1), helpstring("method OnMyButton")] HRESULT OnMyButton([in]IDispatch* pIDispControl);
	};

[
	uuid(99D3889B-0D89-4EA3-A360-49B0639A1A15),
	version(1.0),
	helpstring("MyAddin 1.0 Type Library")
]
library MYADDINLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(808D6025-DA3D-4EC2-9D0D-18B6994F501C),
		helpstring("WordAddin Class")
	]
	coclass WordAddin
	{
		[default] interface IWordAddin;
	};
};

⌨️ 快捷键说明

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