📄 unspusb.odl
字号:
// unSPUsb.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 (unSPUsb.tlb) that will become a resource in
// unSPUsb.ocx.
#include <olectl.h>
#include <idispids.h>
[ uuid(2E8D3B7E-7CB4-4F0A-8DD2-86A6DFFE5554), version(1.0),
helpfile("unSPUsb.hlp"),
helpstring("unSPUsb ActiveX Control module"),
control ]
library UNSPUSBLib
{
importlib(STDOLE_TLB);
importlib(STDTYPE_TLB);
// Primary dispatch interface for CUnSPUsbCtrl
[ uuid(74B8D031-DB2E-49A1-84B1-3186FCB5D39F),
helpstring("Dispatch interface for UnSPUsb Control"), hidden ]
dispinterface _DUnSPUsb
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CUnSPUsbCtrl)
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(CUnSPUsbCtrl)
[id(1)] boolean UsbConnect();
[id(2)] boolean UsbDisconnect();
[id(3)] boolean UsbWrite(BSTR lpBuffer);
//}}AFX_ODL_METHOD
[id(DISPID_ABOUTBOX)] void AboutBox();
};
// Event dispatch interface for CUnSPUsbCtrl
[ uuid(BDBDBF29-3BC2-4891-92B1-69211B5B7ABA),
helpstring("Event interface for UnSPUsb Control") ]
dispinterface _DUnSPUsbEvents
{
properties:
// Event interface has no properties
methods:
// NOTE - ClassWizard will maintain event information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_EVENT(CUnSPUsbCtrl)
//}}AFX_ODL_EVENT
};
// Class information for CUnSPUsbCtrl
[ uuid(72653EDE-9B42-41CE-9C26-F0337EA53C88),
helpstring("UnSPUsb Control"), control ]
coclass UnSPUsb
{
[default] dispinterface _DUnSPUsb;
[default, source] dispinterface _DUnSPUsbEvents;
};
//{{AFX_APPEND_ODL}}
//}}AFX_APPEND_ODL}}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -