📄 xsockserver.odl
字号:
// XSockServer.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 (XSockServer.tlb) that will become a resource in
// XSockServer.ocx.
#include <olectl.h>
#include <idispids.h>
[ uuid(F85053F3-DD8F-11D3-B4AF-00C04F2B300E), version(1.0),
helpfile("XSockServer.hlp"),
helpstring("XSockServer ActiveX Control module"),
control ]
library XSOCKSERVERLib
{
importlib(STDOLE_TLB);
importlib(STDTYPE_TLB);
// Primary dispatch interface for CXSockServerCtrl
[ uuid(F85053F4-DD8F-11D3-B4AF-00C04F2B300E),
helpstring("Dispatch interface for XSockServer Control"), hidden ]
dispinterface _DXSockServer
{
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CXSockServerCtrl)
[id(1)] BSTR LocalAddress;
[id(2)] long LocalPort;
[id(3)] boolean NullTerminate;
[id(4)] long ReceiveBufferCount;
//}}AFX_ODL_PROP
methods:
// NOTE - ClassWizard will maintain method information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_METHOD(CXSockServerCtrl)
[id(5)] boolean Listen();
[id(6)] boolean Send(long lChildId, BSTR lpData, long nDataLen);
[id(7)] void Close();
//}}AFX_ODL_METHOD
[id(DISPID_ABOUTBOX)] void AboutBox();
};
// Event dispatch interface for CXSockServerCtrl
[ uuid(F85053F5-DD8F-11D3-B4AF-00C04F2B300E),
helpstring("Event interface for XSockServer Control") ]
dispinterface _DXSockServerEvents
{
properties:
// Event interface has no properties
methods:
// NOTE - ClassWizard will maintain event information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_EVENT(CXSockServerCtrl)
[id(1)] void OnError(BSTR lpErrorDescription);
[id(2)] void OnClose(long lChildId);
[id(3)] void OnReceive(long lChildId, BSTR lpData, long nDataLen);
[id(4)] void OnAccept(long lChildId);
//}}AFX_ODL_EVENT
};
// Class information for CXSockServerCtrl
[ uuid(F85053F6-DD8F-11D3-B4AF-00C04F2B300E),
helpstring("XSockServer Control"), control ]
coclass XSockServer
{
[default] dispinterface _DXSockServer;
[default, source] dispinterface _DXSockServerEvents;
};
//{{AFX_APPEND_ODL}}
//}}AFX_APPEND_ODL}}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -