| | |
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: 577
Reputation:
Solved Threads: 93
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 array arrays bash binarysearch centimeter char convert copyanyfile copypdffile cprogramme createcopyoffile createprocess() csyntax directory dynamic feet fflush file floatingpointvalidation fork frequency getlasterror getlogicaldrivestrin givemetehcodez global graphics gtkgcurlcompiling hardware highest homework i/o ide inches infiniteloop initialization interest kilometer km linked linkedlist linux linuxsegmentationfault list locate logical_drives match matrix meter microsoft motherboard multi mysql odf open opendocumentformat opensource openwebfoundation owf pattern pdf performance pointer pointers posix power probleminc program programming pyramidusingturboccodes read recursion recv repetition scanf scheduling segmentationfault send shape single socketprograming socketprogramming stack standard strchr string strings suggestions systemcall test testautomation unix urboc user voidmain() wab win32api windows.h






