943,800 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 10949
  • C RSS
Apr 14th, 2008
-1

How to do parallel port programming with Windows XP in C ?

Expand Post »
With windows XP, normal inport, outport functions do not seem to work. I downloaded a utility to open ports and then use these funtions, but it didnt help. Anyone can give details how to do parallel port programming in XP using C?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
GMSI is offline Offline
2 posts
since Feb 2008
Apr 14th, 2008
0

Re: How to do parallel port programming with Windows XP in C ?

you need inpout32.dll, a 32 bits version of the old inp() and out() functions.

for the Dll and sample-programs:
Click
Last edited by Nick Evan; Apr 14th, 2008 at 7:13 am.
Moderator
Featured Poster
Reputation Points: 4142
Solved Threads: 394
Industrious Poster
Nick Evan is offline Offline
4,132 posts
since Oct 2006
Apr 14th, 2008
1

Re: How to do parallel port programming with Windows XP in C ?

inport() and outport() functions do work if you have opened the port. I use a software called Userport to do the same. Alternatively you could try inportb() and outportb(). Here is a tutorial on parallel port programming in C
Parallel port tutorial
Last edited by hammerhead; Apr 14th, 2008 at 10:04 am.
Reputation Points: 46
Solved Threads: 24
Posting Whiz in Training
hammerhead is offline Offline
248 posts
since May 2006
Apr 19th, 2008
0

Re: How to do parallel port programming with Windows XP in C ?

Have you tried using Direct I/O?

The web site is

http://www.direct-io.com

I hope that helps.
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
guy40az is offline Offline
51 posts
since Mar 2007
Jul 31st, 2010
0
Re: How to do parallel port programming with Windows XP in C ?
Click to Expand / Collapse  Quote originally posted by GMSI ...
With windows XP, normal inport, outport functions do not seem to work. I downloaded a utility to open ports and then use these funtions, but it didnt help. Anyone can give details how to do parallel port programming in XP using C?

I have a suggestion: Try imitating the printer, so that the system assumes that is the printer, while the equipment can be anything else. This way, you can circumvent the obstructions of XP. I am trying that, as soon as I am successful, I will get back with details.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
raghavaniyer is offline Offline
10 posts
since Jul 2010
Jul 31st, 2010
0
Re: How to do parallel port programming with Windows XP in C ?
Oh boy...dont try to get back to him, coz he is too late to see your post..!!!
Reputation Points: 9
Solved Threads: 22
Junior Poster
kings_mitra is offline Offline
120 posts
since May 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Get the digits of an int without using arrays
Next Thread in C Forum Timeline: problem with conversion of units like km to m etc...





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC