📄 myfirstctrl.idl
字号:
// MyFirstCtrl.idl : IDL source for MyFirstCtrl.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (MyFirstCtrl.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
#include "olectl.h"
[
object,
uuid(BFBEE2BD-C1BF-4137-8914-630B040C4E98),
dual,
helpstring("IHexConv Interface"),
pointer_default(unique)
]
interface IHexConv : IDispatch
{
[propget, id(1), helpstring("property InValue"), bindable, requestedit, displaybind] HRESULT InValue([out, retval] long *pVal);
[propput, id(1), helpstring("property InValue"), bindable, requestedit, displaybind] HRESULT InValue([in] long newVal);
[propget, id(2), helpstring("property OutValue"), bindable, displaybind, requestedit] HRESULT OutValue([out, retval] long *pVal);
[propput, id(2), helpstring("property OutValue"), bindable, displaybind, requestedit] HRESULT OutValue([in] long newVal);
[id(3), helpstring("method SetDisplayString")] HRESULT SetDisplayString(BSTR DisplayStr);
};
[
uuid(69DAD386-D1AB-4A0C-B752-EB3D5720004D),
version(1.0),
helpstring("MyFirstCtrl 1.0 Type Library")
]
library MYFIRSTCTRLLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(C0DE30C2-BCB2-424B-A1BE-EE2C80E8CF1D),
helpstring("_IHexConvEvents Interface")
]
dispinterface _IHexConvEvents
{
properties:
methods:
[id(1), helpstring("method OnOutChange")] void OnOutChange();
};
[
uuid(E8DB82FB-9EEE-4F2E-8335-225369FEBF49),
helpstring("HexConv Class")
]
coclass HexConv
{
[default] interface IHexConv;
[default, source] dispinterface _IHexConvEvents;
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -