Solved

C++ Builder & LPT

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

830 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