Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 571
  • Last Modified:

C++ Builder & LPT

How do I send something to the 8 data bits of the LPT if I'm using Windows 95.
0
pjpc
Asked:
pjpc
1 Solution
 
Daniel_ECommented:
It all depends on what OS you are using!

0
 
cphCommented:
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
0
 
pjpcAuthor Commented:
Edited text of question
0
 
OdieCommented:
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))
0
 
MikeP090797Commented:
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
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now