⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xsockclient.odl

📁 基于组态开发的VC源码
💻 ODL
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -