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

📄 testsocketa.odl

📁 适合初学者
💻 ODL
字号:
// TestSocketA.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 (TestSocketA.tlb) that will become a resource in
// TestSocketA.ocx.

#include <olectl.h>
#include <idispids.h>

[ uuid(4876CA14-BC24-46C9-88AD-780166A138A6), version(1.0),
  helpfile("TestSocketA.hlp"),
  helpstring("TestSocketA ActiveX Control module"),
  control ]
library TESTSOCKETALib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for CTestSocketACtrl

	[ uuid(2A591068-FCF1-46E0-9DD8-12A67FF2E866),
	  helpstring("Dispatch interface for TestSocketA Control"), hidden ]
	dispinterface _DTestSocketA
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CTestSocketACtrl)
			//}}AFX_ODL_PROP

		methods:
			// NOTE - ClassWizard will maintain method information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_METHOD(CTestSocketACtrl)
			[id(1)] boolean CreateTestCon(long iProcessType, BSTR pszServerIP, long iPort);
			//}}AFX_ODL_METHOD

			[id(DISPID_ABOUTBOX)] void AboutBox();
	};

	//  Event dispatch interface for CTestSocketACtrl

	[ uuid(B7E612A8-04FB-470E-9E45-1A4E0AC30ED7),
	  helpstring("Event interface for TestSocketA Control") ]
	dispinterface _DTestSocketAEvents
	{
		properties:
			//  Event interface has no properties

		methods:
			// NOTE - ClassWizard will maintain event information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_EVENT(CTestSocketACtrl)
			[id(1)] void OnSocketClose();
			//}}AFX_ODL_EVENT
	};

	//  Class information for CTestSocketACtrl

	[ uuid(F4ECEB5A-5421-48E7-ADF5-EFD1287036CE),
	  helpstring("TestSocketA Control"), control ]
	coclass TestSocketA
	{
		[default] dispinterface _DTestSocketA;
		[default, source] dispinterface _DTestSocketAEvents;
	};


	//{{AFX_APPEND_ODL}}
	//}}AFX_APPEND_ODL}}
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -