954,499 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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

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?

GMSI
Newbie Poster
2 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
 

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

for the Dll and sample-programs:
Click

Nick Evan
Not a Llama
Moderator
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403
 

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

hammerhead
Posting Whiz in Training
257 posts since May 2006
Reputation Points: 46
Solved Threads: 24
 

Have you tried using Direct I/O?

The web site is

http://www.direct-io.com

I hope that helps.

guy40az
Junior Poster in Training
57 posts since Mar 2007
Reputation Points: 10
Solved Threads: 2
 
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.

raghavaniyer
Newbie Poster
10 posts since Jul 2010
Reputation Points: 10
Solved Threads: 0
 

Oh boy...dont try to get back to him, coz he is too late to see your post..!!! :'(

kings_mitra
Junior Poster
122 posts since May 2009
Reputation Points: 9
Solved Threads: 23
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You