Printer Port

This is a discussion on Printer Port within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I am writing a program for dos in C++ that would controll a printer port ( send and recieve data ...

  1. #1
    Unregistered
    Guest

    Exclamation Printer Port

    I am writing a program for dos in C++ that would controll a printer port ( send and recieve data ). Connected to the printer port would be a set of IR sensors and LED's. But the problem is that I dont know how to controll the port's pins. My plan is to create a lap counter for our HO, four lane, slotcar track.

    Code/examples would be of great help!

  2. #2
    Registered User SavesTheDay's Avatar
    Join Date
    Jan 2002
    Posts
    77
    I'm trying to about the same thing and have found NO one who can actually help......

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    27

    Printer port

    Hi,
    In the good old days of DOS, controlling the printer port was easy. outp(port,byte) would send a byte to the port.
    outp(0x378,byte) sends the byte to the printer port.

    This may or may not work in Win9X but most likely will not work in NT,2000 or XP.

    Hope this helps

    BTW 0x378 is the printer port on most computers.
    Pappy
    You learn something new everyday.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. FTP program
    By jakemott in forum Linux Programming
    Replies: 14
    Last Post: 10-06-2008, 01:58 PM
  2. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  3. Serial / Printer Port Programming
    By weakling in forum C Programming
    Replies: 2
    Last Post: 06-02-2005, 09:04 PM
  4. Virtual Printer Port
    By rich1984 in forum Windows Programming
    Replies: 2
    Last Post: 02-25-2005, 02:56 PM
  5. sending data to printer port
    By lliero in forum C Programming
    Replies: 3
    Last Post: 11-20-2001, 03:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21