Tutorial for Printer Port Coding

844 views Asked by At

I want to do hardware interaction using "C" Program. I have heard that using Printer's port I can create a C Program which can control a "Bulb" or "Tube Light" to on or off. Which means if I press any key from my Keyboard ( Suppose "1" ) then Bulb will be on and from another key I want to off it. How can I achieve this ?

1

There are 1 answers

0
J. C. Salomon On BEST ANSWER

See http://logix4u.net/parallel-port. Since (you say) you’re using Windows 98, their Tutorial on Parallel Port Interfacing will be directly applicable.

If you want to write programs that can be used on later versions of Windows, see also their Inpout32.dll for Windows 98/2000/NT/XP, which claims to be compatible with the programs from the book Parallel Port Complete (see the book’s website for downloadable sample programs).

Another good-looking tutorial/sample for inpout32.dll is at http://www.hytherion.com/beattidp/comput/pport.htm.