by Anonymous on January 12th, 2007

Anonymous

Question

Help answer this question below.

How do you access a lpt ibm compatible parrallel port through c++?

  • Like
  • Report

Answers. Showing one answer.

  • by tigueron on January 12th, 2007

    tigueron

    Assuming you are in a windows environment. You can use the CreateFile (http://msdn2.microsoft.com/en-gb/library/aa363858.aspx) API to open a port the port name would be something like "\.LPT1", or you can use the FileStream method (http://msdn2.microsoft.com/en-us/library/ms143396.aspx)

    Comments
    • Like
    • Report

    1 comment | Post one | Permalink

Want to attach an image to your answer? Click here.

Did this answer your question? If not, then ask a new question or create a poll.

You're reading How do you access a lpt ibm compatible parrallel port through c++?

Follow us on Facebook!

Related Ads