[推薦]Human Interface Device component(可控制USB喔) |
|
axsoft
版主 發表:681 回覆:1056 積分:969 註冊:2002-03-13 發送簡訊給我 |
Human Interface Device component Interface for Microsoft Human Input Device (HID) API, updated 23 Mar 2000 作者:Robert Marquardt
BCB使用方法
1.將hid.dll複製到BCB\Bin資料夾
2.以implib hid.lib hid.dll命令列製造出hid.lib
3.在dclusr50.dpk加入hid.lib
4.Install Component->HidControllerClass,
編譯完之後Component Palette裡便有TjvHidDeviceController元件可供使用.
5.使用方法參考所壓縮檔附的Delphi範例 下載: ftp://delphi-jedi.org/api/hid.zip
語法:
====================================================================
TJvHidDevice Object
Hierarchy Properties Methods Events
Declaration TJvHidDevice = class(TObject) TJvHidDevice object represents a physical HID device.
All static informations of the device have been read into properties of the object.
The object is created at runtime by a TJvHidDeviceController which reigns all TJVHidDevice object. ===================================================================== The HID component gives you complete access to all HID devices of Windows 98, Windows 98 SE and Windows 2000. A HID device is a USB device which you can interact with. Most of the USB devices are HID. Keyboard, mice or scanners are definitely HID. A USB Hub is not HID. There is no need to touch it to make it work. Some non USB devices are added to HID by a legacy driver.
The main feature of USB is the hotplugging of the devices. Consequently the HID component is a controller component which handles all the HID device plugs and unplugs. You will therefore only need a single instance of the HID component in your program. Each individual HID device is represented by an instance of a HID device object. The HID controller holds a list of all HID device objects. When a HID device is plugged Windows sends a WM_DEVICECHANGE event. The HID component catches this event and adds a new instance of a HID device object to its list of HID devices.
Now you can ask the HID component to hand out one of its HID device objects. With this HID device object you can then access the individual device. When you are finished with the device hand back the HID device object to the HID component 發表人 - axsoft 於 2002/06/26 10:59:08
|
kuo348
一般會員 發表:2 回覆:11 積分:12 註冊:2002-09-18 發送簡訊給我 |
|
pixel
一般會員 發表:4 回覆:1 積分:1 註冊:2003-10-06 發送簡訊給我 |
|
lcu
一般會員 發表:6 回覆:13 積分:3 註冊:2003-11-11 發送簡訊給我 |
|
n38870035
一般會員 發表:2 回覆:14 積分:3 註冊:2003-07-19 發送簡訊給我 |
請問一下大大我下載了你所提供的物件,但是出現了File not found: 'Dsgnintf.dcu'的問題,這是否因D5 OR D6版本不同的關希.
謝謝
引言: Human Interface Device component Interface for Microsoft Human Input Device (HID) API, updated 23 Mar 2000 作者:Robert Marquardt BCB使用方法 1.將hid.dll複製到BCB\Bin資料夾 2.以implib hid.lib hid.dll命令列製造出hid.lib 3.在dclusr50.dpk加入hid.lib 4.Install Component->HidControllerClass, 編譯完之後Component Palette裡便有TjvHidDeviceController元件可供使用. 5.使用方法參考所壓縮檔附的Delphi範例 下載: ftp://delphi-jedi.org/api/hid.zip 語法: ==================================================================== TJvHidDevice Object Hierarchy Properties Methods Events Declaration TJvHidDevice = class(TObject) TJvHidDevice object represents a physical HID device. All static informations of the device have been read into properties of the object. The object is created at runtime by a TJvHidDeviceController which reigns all TJVHidDevice object. ===================================================================== The HID component gives you complete access to all HID devices of Windows 98, Windows 98 SE and Windows 2000. A HID device is a USB device which you can interact with. Most of the USB devices are HID. Keyboard, mice or scanners are definitely HID. A USB Hub is not HID. There is no need to touch it to make it work. Some non USB devices are added to HID by a legacy driver. The main feature of USB is the hotplugging of the devices. Consequently the HID component is a controller component which handles all the HID device plugs and unplugs. You will therefore only need a single instance of the HID component in your program. Each individual HID device is represented by an instance of a HID device object. The HID controller holds a list of all HID device objects. When a HID device is plugged Windows sends a WM_DEVICECHANGE event. The HID component catches this event and adds a new instance of a HID device object to its list of HID devices. Now you can ask the HID component to hand out one of its HID device objects. With this HID device object you can then access the individual device. When you are finished with the device hand back the HID device object to the HID component 發表人 - axsoft 於 2002/06/26 10:59:08 |
htc51
一般會員 發表:2 回覆:1 積分:0 註冊:2004-08-03 發送簡訊給我 |
|
AJCooer
初階會員 發表:48 回覆:52 積分:25 註冊:2004-02-12 發送簡訊給我 |
|
LeonSun
一般會員 發表:5 回覆:9 積分:2 註冊:2003-10-17 發送簡訊給我 |
|
blacksquall
一般會員 發表:0 回覆:1 積分:0 註冊:2004-10-03 發送簡訊給我 |
|
harvey30438
一般會員 發表:2 回覆:5 積分:1 註冊:2004-12-15 發送簡訊給我 |
|
joeen63
一般會員 發表:8 回覆:5 積分:2 註冊:2007-04-05 發送簡訊給我 |
|
GrandRURU
站務副站長 發表:240 回覆:1680 積分:1874 註冊:2005-06-21 發送簡訊給我 |
|
joeen63
一般會員 發表:8 回覆:5 積分:2 註冊:2007-04-05 發送簡訊給我 |
===================引 用 GrandRURU 文 章=================== 補上更新後的網址 JEDI Visual Component Library 目前使用 HIDController.v1.0.32.Full.Source.Delphi.BCB.554174 , 要如何更新呢? |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |