Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 15th, 2005, 10:54 AM   #1
lgiordano
Newbie
 
Join Date: Feb 2005
Posts: 8
Rep Power: 0 lgiordano is on a distinguished road
Exclamation Parallel Port

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...
lgiordano is offline   Reply With Quote
Old Feb 15th, 2005, 12:00 PM   #2
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
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
kurifu is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:32 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC