📄 isaio.odl
字号:
// ISAIO.odl : type library source for ActiveX Control project.
// This file will be processed by the Make Type Library (mktyplib) tool to
// produce the type library (ISAIO.tlb) that will become a resource in
// ISAIO.ocx.
#include <olectl.h>
#include <idispids.h>
[ uuid(524ED723-A5E6-11D9-A0D8-C41D169C0C54), version(1.0),
helpfile("ISAIO.hlp"),
helpstring("ISAIO ActiveX Control module"),
control ]
library ISAIOLib
{
importlib(STDOLE_TLB);
importlib(STDTYPE_TLB);
// Primary dispatch interface for CISAIOCtrl
[ uuid(524ED724-A5E6-11D9-A0D8-C41D169C0C54),
helpstring("Dispatch interface for ISAIO Control"), hidden ]
dispinterface _DISAIO
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CISAIOCtrl)
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(CISAIOCtrl)
[id(1)] void Add2AddrList(short addr);
[id(2)] boolean OutPortByte(short addr, short value);
[id(3)] boolean OutPortBits(short addr, short mask, boolean st);
[id(4)] short InPortByte(short addr);
//}}AFX_ODL_METHOD
[id(DISPID_ABOUTBOX)] void AboutBox();
};
// Event dispatch interface for CISAIOCtrl
[ uuid(524ED725-A5E6-11D9-A0D8-C41D169C0C54),
helpstring("Event interface for ISAIO Control") ]
dispinterface _DISAIOEvents
{
properties:
// Event interface has no properties
methods:
// NOTE - ClassWizard will maintain event information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_EVENT(CISAIOCtrl)
//}}AFX_ODL_EVENT
};
// Class information for CISAIOCtrl
[ uuid(524ED726-A5E6-11D9-A0D8-C41D169C0C54),
helpstring("ISAIO Control"), control ]
coclass ISAIO
{
[default] dispinterface _DISAIO;
[default, source] dispinterface _DISAIOEvents;
};
//{{AFX_APPEND_ODL}}
//}}AFX_APPEND_ODL}}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -