We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now

x

C++ Builder & LPT

pjpc
pjpc asked
on
Medium Priority
588 Views
Last Modified: 2006-11-17
How do I send something to the 8 data bits of the LPT if I'm using Windows 95.
Comment
Watch Question

Commented:
It all depends on what OS you are using!

cph

Commented:
I think that your are using windows 95 or NT therefore the answer could be:
-In the same way that you do it under DOS by using the outp/inp function

Author

Commented:
Edited text of question

Commented:
Maybe you should have a look at the Win32 help file.  You can open communication resources using CreateFile and you can write to LPT this way. (CreateFile("LPT1:", ... or something))
You can access ports directly after getting there handle using CreateFile(). Then you can send data to this port just as to a regular file

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.