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

📄 meter.odl

📁 windows2000下PCI板卡虚拟驱动编程源程序例子
💻 ODL
字号:
// Meter.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 (Meter.tlb) that will become a resource in
// Meter.ocx.

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

[ uuid(15491A62-5B63-11D5-ADD3-001088AB5D33), version(1.0),
  helpfile("Meter.hlp"),
  helpstring("Meter ActiveX Control module"),
  control ]
library METERLib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for CwyMeterCtrl

	[ uuid(15491A63-5B63-11D5-ADD3-001088AB5D33),
	  helpstring("Dispatch interface for wyMeter Control"), hidden ]
	dispinterface _DwyMeter
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CwyMeterCtrl)
			//}}AFX_ODL_PROP

		methods:
			// NOTE - ClassWizard will maintain method information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_METHOD(CwyMeterCtrl)
			[id(8)] void SetCurrentValue(double val);
			//}}AFX_ODL_METHOD

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

	//  Event dispatch interface for CwyMeterCtrl

	[ uuid(15491A64-5B63-11D5-ADD3-001088AB5D33),
	  helpstring("Event interface for wyMeter Control") ]
	dispinterface _DwyMeterEvents
	{
		properties:
			//  Event interface has no properties

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

	//  Class information for CwyMeterCtrl

	[ uuid(15491A65-5B63-11D5-ADD3-001088AB5D33),
	  helpstring("wyMeter Control"), control ]
	coclass wyMeter
	{
		[default] dispinterface _DwyMeter;
		[default, source] dispinterface _DwyMeterEvents;
	};


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

⌨️ 快捷键说明

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