📄 atldisp.idl
字号:
// ATLDisp.idl : IDL source for ATLDisp.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (ATLDisp.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(D17A119D-0FEC-4737-8EBD-4AA040393A36),
dual,
helpstring("IAAA Interface"),
pointer_default(unique)
]
interface IAAA : IDispatch
{
[propget, id(1), helpstring("property BBB")] HRESULT BBB([out, retval] LPDISPATCH *pVal);
};
[
object,
uuid(D17A119E-0FEC-4737-8EBD-4AA040393A36),
dual,
helpstring("IBBB Interface"),
pointer_default(unique)
]
interface IBBB : IDispatch
{
[id(1), helpstring("method Add")] HRESULT Add([in] long n1,[in] long n2, [out,retval] long *pnSum);
};
[
uuid(BE981CA7-01DB-4C90-B6F3-814C3BF2FCDA),
version(1.0),
helpstring("ATLDisp 1.0 Type Library")
]
library ATLDISPLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(2E4504CB-EC44-46A9-B19B-1EA58174EF2F),
helpstring("AAA Class")
]
coclass AAA
{
[default] interface IAAA;
interface IBBB;
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -