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

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2008
Posts: 2
Reputation: GMSI is an unknown quantity at this point 
Solved Threads: 0
GMSI GMSI is offline Offline
Newbie Poster

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

 
-1
  #1
Apr 14th, 2008
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?
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 2,896
Reputation: niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute niek_e has a reputation beyond repute 
Solved Threads: 302
Moderator
Featured Poster
niek_e's Avatar
niek_e niek_e is online now Online
Cenosillicaphobiac

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

 
0
  #2
Apr 14th, 2008
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 niek_e; Apr 14th, 2008 at 7:13 am.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 248
Reputation: hammerhead is an unknown quantity at this point 
Solved Threads: 24
hammerhead's Avatar
hammerhead hammerhead is offline Offline
Posting Whiz in Training

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

 
1
  #3
Apr 14th, 2008
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.
There are 10 types of people in the world, those who understand binary and those who don't.

All generalizations are wrong. Even this one.
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 50
Reputation: guy40az is an unknown quantity at this point 
Solved Threads: 2
guy40az guy40az is offline Offline
Junior Poster in Training

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

 
0
  #4
Apr 19th, 2008
Have you tried using Direct I/O?

The web site is

http://www.direct-io.com

I hope that helps.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC