![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2005
Posts: 8
Rep Power: 0
![]() |
Hi everybody, this is my first post here.
I need to use parallel port (not to print), under Builder C++ 6.0, on WinNT/2000/XP. As Windows don't let you access directly to ports, I have tried some drivers (i.e. PortTalk driver), but they only works if I have administrator rights. In fact, once I run my app as admin, I can then close session, log on as normal user and my app works fine. (It seems the driver needs admin rights to be loaded) Is there any better way of doing this? Maybe if I write some entries on registry, the driver can load at startup? What about using CreateFile()? Any suggestion will be great! Best wishes from Argentina... |
|
|
|
|
|
#2 |
|
Expert Programmer
|
Nope... since windows implemented a protected memory 32 bit API core (Win 2000 and later) you can no longer access the memory/device directly to send data in and out, I completed a neat little project years ago and learned this in the process... the only way to get around the port talk drivers is to use the MS DDK (Driver Development Kit) and write your own driver to control whatever device it is you wish to control... with the DDK you can get access to the device you need and provide a layer up to your normal applications that you can use to access it.
__________________
Clifford Matthew Roche <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|