Solved

C++ Builder & LPT

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maze travler 6 73
I could not build boost code, 10 116
C++ help/ Toy problem 19 70
How to determine if the result of an equation is an integer in C++? 3 32
When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

734 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