⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 component.idl

📁 经验交流,从网上下载的好东西望大家分享
💻 IDL
字号:
// component.idl
import "unknwn.idl";

[ object, uuid(10000001-0000-0000-0000-000000000001), dual ]
interface ISum : IUnknown
{

	[id(1)] HRESULT Sum([optional, defaultvalue(-1)] int x, [optional, defaultvalue(-1)] int y, [out, retval] int* retvalue);
	[id(2), propget] HRESULT x([out, retval] int* retvalue);
	[id(2), propput] HRESULT x(int newvalue);
	[id(3), propget] HRESULT y([out, retval] int* retvalue);
	[id(3), propput] HRESULT y(int newvalue);
}

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

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

⌨️ 快捷键说明

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