xsockclient.odl
来自「一个完备的组态软件源代码」· ODL 代码 · 共 82 行
ODL
82 行
// XSockClient.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 (XSockClient.tlb) that will become a resource in
// XSockClient.ocx.
#include <olectl.h>
#include <idispids.h>
[ uuid(2328F291-DD85-11D3-B4AF-00C04F2B300E), version(1.0),
helpfile("XSockClient.hlp"),
helpstring("XSockClient ActiveX Control module"),
control ]
library XSOCKCLIENTLib
{
importlib(STDOLE_TLB);
importlib(STDTYPE_TLB);
// Primary dispatch interface for CXSockClientCtrl
[ uuid(2328F292-DD85-11D3-B4AF-00C04F2B300E),
helpstring("Dispatch interface for XSockClient Control"), hidden ]
dispinterface _DXSockClient
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CXSockClientCtrl)
[id(1)] BSTR LocalAddress;
[id(2)] long LocalPort;
[id(3)] long ReceiveBufferCount;
[id(4)] boolean NullTerminate;
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(CXSockClientCtrl)
[id(5)] boolean Connect(BSTR lpHostName, long nPort);
[id(6)] boolean Send(BSTR lpData, long nDataLen);
[id(7)] void Close();
//}}AFX_ODL_METHOD
[id(DISPID_ABOUTBOX)] void AboutBox();
};
// Event dispatch interface for CXSockClientCtrl
[ uuid(2328F293-DD85-11D3-B4AF-00C04F2B300E),
helpstring("Event interface for XSockClient Control") ]
dispinterface _DXSockClientEvents
{
properties:
// Event interface has no properties
methods:
// NOTE - ClassWizard will maintain event information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_EVENT(CXSockClientCtrl)
[id(1)] void OnConnect();
[id(2)] void OnClose();
[id(3)] void OnSend();
[id(4)] void OnError(BSTR lpErrorDescription);
[id(5)] void OnReceive(BSTR lpData, long nDataLen);
//}}AFX_ODL_EVENT
};
// Class information for CXSockClientCtrl
[ uuid(2328F294-DD85-11D3-B4AF-00C04F2B300E),
helpstring("XSockClient Control"), control ]
coclass XSockClient
{
[default] dispinterface _DXSockClient;
[default, source] dispinterface _DXSockClientEvents;
};
//{{AFX_APPEND_ODL}}
//}}AFX_APPEND_ODL}}
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?