📄 scanner.odl
字号:
// scanner.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 (scanner.tlb) that will become a resource in
// scanner.ocx.
#include <olectl.h>
#include <idispids.h>
[ uuid(54A4FA4B-6B54-4336-813D-A05A341188FF), version(1.0),
helpfile("scanner.hlp"),
helpstring("scanner ActiveX Control module"),
control ]
library SCANNERLib
{
importlib(STDOLE_TLB);
importlib(STDTYPE_TLB);
// Primary dispatch interface for CScannerCtrl
[ uuid(8581FA25-A9C4-4675-899B-19D42C4967EE),
helpstring("Dispatch interface for Scanner Control"), hidden ]
dispinterface _DScanner
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CScannerCtrl)
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(CScannerCtrl)
[id(1)] short OpenserialAndWaittingfordata();
[id(2)] void CloseSerialAndStopreceivedata();
[id(3)] void OnCommunication(short ch_receiving);
//}}AFX_ODL_METHOD
[id(DISPID_ABOUTBOX)] void AboutBox();
};
// Event dispatch interface for CScannerCtrl
[ uuid(55E38D59-82B1-45B8-9A1A-EEC97D9C2C9D),
helpstring("Event interface for Scanner Control") ]
dispinterface _DScannerEvents
{
properties:
// Event interface has no properties
methods:
// NOTE - ClassWizard will maintain event information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_EVENT(CScannerCtrl)
[id(1)] void Chariscoming(short charname);
//}}AFX_ODL_EVENT
};
// Class information for CScannerCtrl
[ uuid(8254728B-EB78-4ED2-8036-8CB9FD75E104),
helpstring("Scanner Control"), control ]
coclass Scanner
{
[default] dispinterface _DScanner;
[default, source] dispinterface _DScannerEvents;
};
//{{AFX_APPEND_ODL}}
//}}AFX_APPEND_ODL}}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -