Solved

C++ Builder & LPT

Posted on 1997-10-08
5
534 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
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 100 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now