並列通訊程式碼 |
答題得分者是:qoo1234
|
Patric_Chuang
一般會員 發表:5 回覆:12 積分:3 註冊:2003-03-02 發送簡訊給我 |
請問各位先輩們,小弟我用IO.dll 2002(http://geekhideout.com/iodll.shtml)做並列通訊的控制,此 dll 附有.cpp及.h,小弟我先把此三個檔案放在我的專案資料夾內,在BCB程式中也將.cpp加入專案中,編譯可以成功,但在執行時會產生錯誤訊息,如 Access violation at address 00000000. Read of address 00000000 ,在98下也出現同樣的訊息,只是 Read of address 的位置不同,希望各位先輩們能夠撥空指導小弟,感激不盡,以下小弟附上程式碼,希望各位能夠幫幫忙....謝謝 以下為.cpp檔
#include
|
qoo1234
版主 發表:256 回覆:1167 積分:659 註冊:2003-02-24 發送簡訊給我 |
|
Patric_Chuang
一般會員 發表:5 回覆:12 積分:3 註冊:2003-03-02 發送簡訊給我 |
|
qoo1234
版主 發表:256 回覆:1167 積分:659 註冊:2003-02-24 發送簡訊給我 |
|
Patric_Chuang
一般會員 發表:5 回覆:12 積分:3 註冊:2003-03-02 發送簡訊給我 |
|
qoo1234
版主 發表:256 回覆:1167 積分:659 註冊:2003-02-24 發送簡訊給我 |
|
Patric_Chuang
一般會員 發表:5 回覆:12 積分:3 註冊:2003-03-02 發送簡訊給我 |
|
qoo1234
版主 發表:256 回覆:1167 積分:659 註冊:2003-02-24 發送簡訊給我 |
Windows NT/2000 is accomodated through the use of a small kernel mode driver that releases the ports as needed to the application.
This driver is embedded in the DLL and is installed if Windows NT/2000/XP is determined to be the underlying operating system.
Due to the very minor overhead involved in dynamically linking to IO.DLL, and the optimized functions contained within, access to I/O ports is nearly as fast as if it was written in raw assembler and inlined in your application.
This holds true for both Windows 95/98 and Windows NT/2000.
Before moving on, it is probably prudent to mention that the technique employed in IO.
DLL for releasing the ports to the application level isn't, strictly speaking, the proper way to do things.
The proper way is to have a virtual device driver for Windows 95/98 and a kernel mode driver for Windows NT/2000.
This isn't very practical for many people though, nor is it really necessary.
There are several successful commercial products on the market that do exactly what IO.
DLL does.
|
Patric_Chuang
一般會員 發表:5 回覆:12 積分:3 註冊:2003-03-02 發送簡訊給我 |
引言: Windows NT/2000 is accomodated through the use of a small kernel mode driver that releases the ports as needed to the application. This driver is embedded in the DLL and is installed if Windows NT/2000/XP is determined to be the underlying operating system. Due to the very minor overhead involved in dynamically linking to IO.DLL, and the optimized functions contained within, access to I/O ports is nearly as fast as if it was written in raw assembler and inlined in your application. This holds true for both Windows 95/98 and Windows NT/2000. Before moving on, it is probably prudent to mention that the technique employed in IO. DLL for releasing the ports to the application level isn't, strictly speaking, the proper way to do things. The proper way is to have a virtual device driver for Windows 95/98 and a kernel mode driver for Windows NT/2000. This isn't very practical for many people though, nor is it really necessary. There are several successful commercial products on the market that do exactly what IO. DLL does.qoo1234兄,小弟還是無法很完全瞭解文章的含意,能否請您大概的講解一下 很抱歉又麻煩您 謝謝 |
ATEIN
高階會員 發表:105 回覆:320 積分:125 註冊:2002-07-05 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |