?
Solved

C++ Builder & LPT

Posted on 1997-10-08
5
Medium Priority
?
564 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.
0
Comment
Question by:pjpc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 1

Expert Comment

by:Daniel_E
ID: 1171014
It all depends on what OS you are using!

0
 
LVL 1

Expert Comment

by:cph
ID: 1171015
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
 

Author Comment

by:pjpc
ID: 1171016
Edited text of question
0
 
LVL 1

Expert Comment

by:Odie
ID: 1171017
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
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 200 total points
ID: 1171018
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall‚Ķ
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question