Solved

Programming Parallel Port in Win2k an XP Problem

Posted on 2004-09-19
10
12,239 Views
Last Modified: 2013-11-17
Hello everyone.
Not sure if this is the correct are to place this question but it was the closest I could find.
Here's my probelm:
I am currently writing a program which will communicatewith the parallel port on my PC to an external RF transciever. A friend of mine has tried something similar already and he tells me that I may need some kind of driver. Im doing this on win2k and then maybe win XP. Could someone tell me if this is true. I will be writing the code in C++. Where do I download this driver from and where do I put it when I download it? Is there any chance that I could do harm to my machine if I don't use it corectly or put it in the wrong place?

Why have microsoft done this anyway? is it just for security?

Thanks for any help you might have.  
0
Comment
Question by:fr_cassidy
10 Comments
 
LVL 11

Expert Comment

by:Jase-Coder
Comment Utility
Yeh microsoft have done this for security reasons

this site may help ya
http://www.lvr.com/parport.htm
0
 
LVL 16

Expert Comment

by:George Tokas
Comment Utility
Jase-Coder's suggestion will help you a lot.
BUT if you use like us Borland's C++ Builder then I suggest to look at IOPort component from www.winsoft.sk
You can use this component to communicate with Paralel port (or any other I/O port you like) but you have to add IOPort.sys to your drivers directory.
Comment: Microsoft want to make our life hell.

gtokas.
0
 
LVL 9

Expert Comment

by:Cayce
Comment Utility
Using the giveIO driver will greatly simplify your life.
After installing giveIO from your application you can just use the standard IO calls inport and outport.

http://www.littlesounddj.com/awkiawki/index.cgi/GiveIO
0
 

Author Comment

by:fr_cassidy
Comment Utility
thanks for the replies guys,
haven't realy got time to try until later today. I'll get back then to let you all know how it goin.
thanks again
fr
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:fr_cassidy
Comment Utility
Has anybody every come accross the porttalk program available free for download at http://www.beyondlogic.org/porttalk/porttalk.htm? It seems good but I haven't installed it yet.

Or has anybody every successfully managed to program the parallel port using windows 2000 or xp. Some of the links above tell me im using the software at my own risk. I'm not really prepared to take any chances. Surely there must be a reliable straight forward way to allow access to the ports?

Thanks again for any suggestions
fr
0
 

Author Comment

by:fr_cassidy
Comment Utility
Hello again,
Does anybody know anything about the driver inpout32.dll? I found it at http://www.logix4u.net. The documentation seems to be sketchy. It says to copy it to the system folder but I can't find out what I have to do in the existing C++ program. Would I have to include the driver some way? and also somewhere I read that instead of using inp or outp as I do in C++, you have to use inp32 and outp32. Does anybody have any ideas on this? Is this a better option than the porttalk program mentioned above? There seems to be no installation and no initialisation before the program is run. It seems you just work away as normal once you mave the driver to the correct location and possibly make some changes in your own code?

Thanks again,
fr
0
 

Author Comment

by:fr_cassidy
Comment Utility
Ok, thanks for all your comments. Just got it going. Downloaded a program called userport found in a google search, which install a driver and allows you to configure which addresses you want to open. very simple to use and reliable so far. I'd recommend it. it was hard to find any documentation on the proper procedures for the programs/drivers mentioned above.

thanks
fr
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
Comment Utility
Closed, 70 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0
 

Expert Comment

by:yagomera
Comment Utility
Hello, i have the same problems moths ago,

I use a dll driver called UserPort. It's free, it's easy to install.

With wthis program, now, you can use the paralel port in Windows Xp like Windows 98.+

Try it beacuse perhaps you haven't change your actual code. If runs in w98 then will run in xp

0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now