全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:5998
推到 Plurk!
推到 Facebook!

DisplayUSB

 
stnovel
一般會員


發表:4
回覆:4
積分:1
註冊:2007-01-10

發送簡訊給我
#1 引用回覆 回覆 發表時間:2007-04-12 13:54:29 IP:61.229.xxx.xxx 訂閱
一般來說要 Compile USB 的程式都要用到 NTDDK 
我將會用到的 .h 加到目錄下,再修改呼叫方式
(因為 BCB 的叫用跟 VC 有些出入)
就可不需安裝 NTDDK 就可 Compile 了.
taishyang
站務副站長


發表:377
回覆:5490
積分:4563
註冊:2002-10-08

發送簡訊給我
#2 引用回覆 回覆 發表時間:2007-04-12 14:07:10 IP:122.124.xxx.xxx 未訂閱
感謝分享,編譯沒問題,但執行有問題,會有Access violation
stnovel
一般會員


發表:4
回覆:4
積分:1
註冊:2007-01-10

發送簡訊給我
#3 引用回覆 回覆 發表時間:2007-04-12 20:18:04 IP:61.62.xxx.xxx 訂閱
喔~~~可是我執行都沒問題吶~~???
pcboy
版主


發表:177
回覆:1838
積分:1463
註冊:2004-01-13

發送簡訊給我
#4 引用回覆 回覆 發表時間:2007-10-31 14:30:25 IP:61.220.xxx.xxx 訂閱
有 Source Code 可以參考, 感謝~

下面是使用您提供的程式執行後儲存的結果

******************************************************
Intel(R) 82801GB USB Universal Host Controller - 27C8
RootHub :USB Root Hub
Hub Power :Bus Power
Number of Ports :2
Power switching :Ganged
Compound device :No
Over-current Protection :Global
======================================================
Port:[1.1.1]No device connected
======================================================
Port:[1.1.2]No device connected
******************************************************
Intel(R) 82801GB USB Universal Host Controller - 27C9
RootHub :USB Root Hub
Hub Power :Bus Power
Number of Ports :2
Power switching :Ganged
Compound device :No
Over-current Protection :Global
======================================================
Port:[2.1.1]No device connected
======================================================
Port:[2.1.2]No device connected
******************************************************
Intel(R) 82801GB USB Universal Host Controller - 27CA
RootHub :USB Root Hub
Hub Power :Bus Power
Number of Ports :2
Power switching :Ganged
Compound device :No
Over-current Protection :Global
======================================================
Port:[3.1.1]No device connected
======================================================
Port:[3.1.2]No device connected
******************************************************
Intel(R) 82801GB USB Universal Host Controller - 27CB
RootHub :USB Root Hub
Hub Power :Bus Power
Number of Ports :2
Power switching :Ganged
Compound device :No
Over-current Protection :Global
======================================================
Port:[4.1.1]No device connected
======================================================
Port:[4.1.2]No device connected
******************************************************
Intel(R) 82801GB USB2 Enhanced Host Controller - 27CC
RootHub :USB Root Hub
Hub Power :Bus Power
Number of Ports :8
Power switching :Ganged
Compound device :No
Over-current Protection :Global
======================================================
Port:[5.1.1]No device connected
======================================================
Port:[5.1.2]No device connected
======================================================
Port:[5.1.3]No device connected
======================================================
Port:[5.1.4]No device connected
======================================================
Port:[5.1.5]No device connected
======================================================
Port:[5.1.6]No device connected
======================================================
Port:[5.1.7]No device connected
======================================================
Port:[5.1.8]No device connected



下面是使用 BCB 6.0 Enterprise 編譯產生程式後, 執行後儲存的結果
希望對您除錯有幫助

******************************************************
Intel(R) 82801GB USB Universal Host Controller - 27C8
******************************************************
Intel(R) 82801GB USB Universal Host Controller - 27C9
******************************************************
Intel(R) 82801GB USB Universal Host Controller - 27CA
******************************************************
Intel(R) 82801GB USB Universal Host Controller - 27CB
******************************************************
Intel(R) 82801GB USB2 Enhanced Host Controller - 27CC
------
能力不足,求助於人;有能力時,幫幫別人;如果您滿意答覆,請適時結案!

子曰:問有三種,不懂則問,雖懂有疑則問,雖懂而想知更多則問!
編輯記錄
pcboy 重新編輯於 2007-11-01 09:53:16, 註解 無‧
pcboy 重新編輯於 2007-11-01 09:53:52, 註解 無‧
boss.tw
高階會員


發表:15
回覆:109
積分:194
註冊:2005-05-17

發送簡訊給我
#5 引用回覆 回覆 發表時間:2008-12-24 09:59:55 IP:60.250.xxx.xxx 訂閱
stnovel 您好,請問在 2000底下無法抓到正常的 usb 裝置是什麼原因?
同樣平台在 xp 下是正常的


最後在 http://delphi.ktop.com.tw/board.php?cid=168&fid=917&tid=63078 找到不夠好的解決辦法
編輯記錄
boss.tw 重新編輯於 2008-12-24 16:40:17, 註解 無‧
系統時間:2024-04-26 16:55:09
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!