943,929 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 893
  • C RSS
Jan 10th, 2009
0

problem with parallel port driving program

Expand Post »
  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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
abhi_marichi is offline Offline
18 posts
since Dec 2007
Jan 10th, 2009
0

Re: problem with parallel port driving program

XP won't allow access to the port. Install GiveIO, and it will.
http://sourceforge.net/project/showf...ease_id=150767
Reputation Points: 78
Solved Threads: 22
Posting Whiz
Colin Mac is offline Offline
327 posts
since Sep 2006
Jan 10th, 2009
0

Re: problem with parallel port driving program

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.
Reputation Points: 344
Solved Threads: 116
Practically a Master Poster
Murtan is offline Offline
670 posts
since May 2008
Jan 10th, 2009
0

Re: problem with parallel port driving program

Thank u
Reputation Points: 10
Solved Threads: 0
Newbie Poster
abhi_marichi is offline Offline
18 posts
since Dec 2007
Jan 10th, 2009
0

Re: problem with parallel port driving program

> 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.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Jan 10th, 2009
0

Re: problem with parallel port driving program

I installed GiveIO
But its not working is there any other way out
Reputation Points: 10
Solved Threads: 0
Newbie Poster
abhi_marichi is offline Offline
18 posts
since Dec 2007
Jan 10th, 2009
0

Re: problem with parallel port driving program

which is the latest C compiler please tell me
Reputation Points: 10
Solved Threads: 0
Newbie Poster
abhi_marichi is offline Offline
18 posts
since Dec 2007
Jan 10th, 2009
0

Re: problem with parallel port driving program

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
Quote ...
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.
Reputation Points: 78
Solved Threads: 22
Posting Whiz
Colin Mac is offline Offline
327 posts
since Sep 2006
Jan 10th, 2009
0

Re: problem with parallel port driving program

> which is the latest C compiler please tell me
http://en.wikipedia.org/wiki/Visual_Studio_Express
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Jan 11th, 2009
0

Re: problem with parallel port driving program

still riding with problem
Reputation Points: 10
Solved Threads: 0
Newbie Poster
abhi_marichi is offline Offline
18 posts
since Dec 2007

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: Reading numbers - tired, stressed and cannot see why.
Next Thread in C Forum Timeline: how pointer variable is able to store address?





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


Follow us on Twitter


© 2011 DaniWeb® LLC