| | |
problem with parallel port driving program
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Dec 2007
Posts: 13
Reputation:
Solved Threads: 0
C Syntax (Toggle Plain Text)
I have used outportn(base,pin); cmd with header file dos.h and as per my knowledge there are no errors in the program. BUT ITS NOT WORKING for crazy it worked ones in my friends computer and never worked again ... What should I do ??Please help me I use XP.
Last edited by abhi_marichi; Jan 10th, 2009 at 1:42 pm.
•
•
Join Date: Sep 2006
Posts: 327
Reputation:
Solved Threads: 22
XP won't allow access to the port. Install GiveIO, and it will.
http://sourceforge.net/project/showf...ease_id=150767
http://sourceforge.net/project/showf...ease_id=150767
•
•
Join Date: May 2008
Posts: 584
Reputation:
Solved Threads: 94
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.
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.
> 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.
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.
•
•
Join Date: Sep 2006
Posts: 327
Reputation:
Solved Threads: 22
•
•
•
•
I installed GiveIO
But its not working is there any other way out
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
Last edited by Colin Mac; Jan 10th, 2009 at 5:58 pm.
![]() |
Similar Threads
- memory management in wndows 2000 (Windows NT / 2000 / XP)
Other Threads in the C Forum
- Previous Thread: Reading numbers - tired, stressed and cannot see why.
- Next Thread: how pointer variable is able to store address?
| Thread Tools | Search this Thread |
* adobe ansi api append array arrays bash binarysearch centimeter char character cm convert copyanyfile copypdffile createcopyoffile createprocess() csyntax directory dynamic execv feet fflush fgets file floatingpointvalidation fork frequency function getlasterror getlogicaldrivestrin givemetehcodez global graphics gtkgcurlcompiling hardware highest homework i/o ide infiniteloop initialization interest intmain() keyboard kilometer license linked linkedlist linux linuxsegmentationfault list match matrix meter microsoft mqqueue multi mysql oddnumber odf open openwebfoundation overwrite pattern pdf pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition scheduling segmentationfault send shape single socketprogramming stack standard strchr string strings suggestions test testautomation unix urboc user voidmain() whythiscodecausesegmentationfault win32api windows.h






