Thread: Help with Parallel Port

  1. #1
    Unregistered
    Guest

    Help with Parallel Port

    Anybody know how to send and recieve a byte from the parallel port with Borland 5.5. outportb and inportb are not recognized funtcions and don't know any other way.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    200
    you might have the functions read and write available on your implementation-they are defined in unistd.h, I think. Read returns a value of ssize_t, which is the amount read. It accepts an int file descriptor, a pointer to the buffer to write to, and the amount you plan on reading, of type size_t. Write is exactly the same. I think they both return -1 if an error occurs, and of course, there are myriads of erronos.
    I go to encounter for the millionth time the reality of experience and to forge in the smithy of my soul the uncreated conscience of my race.

    Windows XP consists of 32 bit extensions and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company, that can't stand 1 bit of competition.

  3. #3
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    If outportb and inportb don't work, try outp and inp.

    -Prelude
    My best code is written with the delete key.

  4. #4
    Unregistered
    Guest

    Question

    outp and inp don't work either. Tried them already.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Parallel Port IO ops not working properly
    By microtechno in forum Linux Programming
    Replies: 16
    Last Post: 06-08-2009, 12:33 PM
  2. Parallel Port to USB controller and outb()
    By coletek in forum Linux Programming
    Replies: 1
    Last Post: 06-05-2009, 06:57 AM
  3. Replies: 3
    Last Post: 02-29-2008, 01:29 PM
  4. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  5. Segmentation Fault - Trying to access parallel port
    By tvsinesperanto in forum C Programming
    Replies: 3
    Last Post: 05-24-2006, 03:28 AM