simple6.idl
来自「Thinkinc++English 电子书籍,英文版」· IDL 代码 · 共 41 行
IDL
41 行
// Simple6.idl : IDL source for Simple6.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (Simple6.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(0960E2C4-C717-4CFF-87B9-F042B4A92B45),
dual,
helpstring("IDispSimple Interface"),
pointer_default(unique)
]
interface IDispSimple : IDispatch
{
[id(1), helpstring("method Add")] HRESULT Add([in] VARIANT v1, [in] VARIANT v2, [out, retval] VARIANT * pVal);
[id(2), helpstring("method Upper")] HRESULT Upper([in] BSTR str, [out,retval] BSTR * pVal);
};
[
uuid(7076E07D-A9AE-4085-8441-6E4A3E652D73),
version(1.0),
helpstring("Simple6 1.0 Type Library")
]
library SIMPLE6Lib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(B7D101C2-1D9E-4CBC-8F2C-DC3DB7A1BC1C),
helpstring("DispSimple Class")
]
coclass DispSimple
{
[default] interface IDispSimple;
};
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?