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

📄 usbulk.odl

📁 USB通讯控件,Bulk通讯方式,可以直接从USB设备中读取数据保存为文件,或者把文件发送给USB设备,用于三星2410相关开发.
💻 ODL
字号:
// Usbulk.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 (Usbulk.tlb) that will become a resource in
// Usbulk.ocx.

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

[ uuid(DC946E3A-0CF4-42A5-AD95-BA8F42097131), version(1.0),
  helpfile("Usbulk.hlp"),
  helpstring("Usbulk ActiveX Control module"),
  control ]
library USBULKLib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for CUsbulkCtrl

	[ uuid(8E1A8D56-92B4-44F1-9CE6-BB28546CF06C),
	  helpstring("Dispatch interface for Usbulk Control"), hidden ]
	dispinterface _DUsbulk
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CUsbulkCtrl)
			//}}AFX_ODL_PROP

		methods:
			// NOTE - ClassWizard will maintain method information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_METHOD(CUsbulkCtrl)
			[id(1)] BSTR WriteUsbFile(BSTR sPath, BSTR dPath, BSTR fileName);
			[id(2)] BSTR ReadUsbFile(BSTR sPath, BSTR dPath, BSTR fileName);
			[id(3)] long GetFileLength(BSTR uDir, BSTR uFileName);
			[id(4)] boolean CreateDir(BSTR sDir);
			[id(5)] BSTR SearchFiles(BSTR extName);
			[id(6)] BSTR GetFileName(BSTR sDir, BSTR extName);
			[id(7)] BSTR GetFolderName(BSTR sDir);
			[id(8)] boolean DeleteDir(BSTR sDir);
			[id(9)] void ResetDevice();
			//}}AFX_ODL_METHOD
	};

	//  Event dispatch interface for CUsbulkCtrl

	[ uuid(7A87B535-2FFC-492A-BA47-E7E4B2354840),
	  helpstring("Event interface for Usbulk Control") ]
	dispinterface _DUsbulkEvents
	{
		properties:
			//  Event interface has no properties

		methods:
			// NOTE - ClassWizard will maintain event information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_EVENT(CUsbulkCtrl)
			//}}AFX_ODL_EVENT
	};

	//  Class information for CUsbulkCtrl

	[ uuid(B25EB85D-EDEC-4C02-AA02-35C0F27EDFCD),
	  helpstring("Usbulk Control"), control ]
	coclass Usbulk
	{
		[default] dispinterface _DUsbulk;
		[default, source] dispinterface _DUsbulkEvents;
	};


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

⌨️ 快捷键说明

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