still reading from the printer
Posted on 1998-02-09
I asked a question earlier about how to axcess the parrallel port of the computer when programing in Visual C++. The answer I got back was to use it as I would a normal data file. The problem I am having is that I am not sure how to treat the data I will be getting from the parallel port. I am going to be connecting an encoder to the port. This is going to give me either a high or low signal on the pins of the parallel port. When I try to read this in how is it going to be represented? Cam I axcess this information bit by bit from the port? Would each bit be corrisponding to a particular pin? Can I read off of some of the pins and write to others? I am having a hard time understanding the big picture here so any help with a general overview would be helpful, but a detailed answer with examples would be perfered.