problem with parallel port driving program

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

Join Date: Dec 2007
Posts: 13
Reputation: abhi_marichi is an unknown quantity at this point 
Solved Threads: 0
abhi_marichi abhi_marichi is offline Offline
Newbie Poster

problem with parallel port driving program

 
0
  #1
Jan 10th, 2009
  1. I have used outportn(base,pin); cmd with header file dos.h
  2. and as per my knowledge there are no errors in the program.
  3. BUT ITS NOT WORKING for crazy it worked ones in my friends computer and never worked again ... What should I do ??Please help me
  4. I use XP.
Last edited by abhi_marichi; Jan 10th, 2009 at 1:42 pm.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 327
Reputation: Colin Mac is on a distinguished road 
Solved Threads: 22
Colin Mac Colin Mac is offline Offline
Posting Whiz

Re: problem with parallel port driving program

 
0
  #2
Jan 10th, 2009
XP won't allow access to the port. Install GiveIO, and it will.
http://sourceforge.net/project/showf...ease_id=150767
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 565
Reputation: Murtan is a jewel in the rough Murtan is a jewel in the rough Murtan is a jewel in the rough Murtan is a jewel in the rough 
Solved Threads: 90
Murtan Murtan is online now Online
Posting Pro

Re: problem with parallel port driving program

 
0
  #3
Jan 10th, 2009
All of the comments I've found (with my Google search that you should have made) indicate that application level programs under 32-bit windows (aka Win32) cannot directly access the I/O ports.

The primary suggestion appears to be that if you really need that level of access to the hardware you will need to write a driver to support it. There was also a mention of some sample code included in the Windows DDK.

I have no personal experience in that area, good luck.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 13
Reputation: abhi_marichi is an unknown quantity at this point 
Solved Threads: 0
abhi_marichi abhi_marichi is offline Offline
Newbie Poster

Re: problem with parallel port driving program

 
0
  #4
Jan 10th, 2009
Thank u
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: problem with parallel port driving program

 
0
  #5
Jan 10th, 2009
> I have used outportn(base,pin); cmd with header file dos.h
Which is older - you or your compiler?

I'm figuring you're using some fossil like TurboC.

The answer is to "get with the times", and use a compiler which is actually compatible with your OS, and not something which is half-heartedly supported for backward compatibility.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 13
Reputation: abhi_marichi is an unknown quantity at this point 
Solved Threads: 0
abhi_marichi abhi_marichi is offline Offline
Newbie Poster

Re: problem with parallel port driving program

 
0
  #6
Jan 10th, 2009
I installed GiveIO
But its not working is there any other way out
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 13
Reputation: abhi_marichi is an unknown quantity at this point 
Solved Threads: 0
abhi_marichi abhi_marichi is offline Offline
Newbie Poster

Re: problem with parallel port driving program

 
0
  #7
Jan 10th, 2009
which is the latest C compiler please tell me
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 327
Reputation: Colin Mac is on a distinguished road 
Solved Threads: 22
Colin Mac Colin Mac is offline Offline
Posting Whiz

Re: problem with parallel port driving program

 
0
  #8
Jan 10th, 2009
Originally Posted by abhi_marichi View Post
I installed GiveIO
But its not working is there any other way out
After you run your program, check the state of the port pins with LPT to confirm it isn't working.
http://neil.fraser.name/software/lpt/
If not, there's also Userport.
http://www.mattjustice.com/parport/par_nt.html
which is the latest C compiler please tell me
Your program is only going to work in Turbo C because you're using DOS functions.
Last edited by Colin Mac; Jan 10th, 2009 at 5:58 pm.
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: problem with parallel port driving program

 
0
  #9
Jan 10th, 2009
> which is the latest C compiler please tell me
http://en.wikipedia.org/wiki/Visual_Studio_Express
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 13
Reputation: abhi_marichi is an unknown quantity at this point 
Solved Threads: 0
abhi_marichi abhi_marichi is offline Offline
Newbie Poster

Re: problem with parallel port driving program

 
0
  #10
Jan 11th, 2009
still riding with problem
Reply With Quote Quick reply to this message  
Reply

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



Similar Threads
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