component.idl

来自「经验交流,从网上下载的好东西望大家分享」· IDL 代码 · 共 34 行

IDL
34
字号
// component.idl
import "unknwn.idl";

[ object, uuid(10000001-0000-0000-0000-000000000001),
  oleautomation ]
interface ISum : IUnknown
{
	HRESULT Sum(int x, int y, [out, retval] int* retval);
}

[ object, uuid(10000005-0000-0000-0000-000000000001),
  oleautomation ]
interface IOutGoing : IUnknown
{
	HRESULT GotMessage(int Message);
}

[ uuid(10000003-0000-0000-0000-000000000001),
  helpstring("Inside COM+ Component Type Library"),
  version(1.0) ]
library Component
{
	importlib("stdole32.tlb");

	interface ISum;
	interface IOutGoing;

	[ uuid(10000002-0000-0000-0000-000000000001) ]
	coclass InsideCOM
	{
		interface ISum;
		[source] interface IOutGoing;
	}
};

⌨️ 快捷键说明

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