Solved

Getting LPT Address

Posted on 1998-05-15
4
454 Views
Last Modified: 2008-02-26
Using msvc5++: how can i find the LPT address,
i know it is mostly should be 378h buti want to
make a code that find that address for sure
10x.
0
Comment
Question by:talsp
  • 2
4 Comments
 
LVL 11

Expert Comment

by:mikeblas
ID: 1177948
If you're using VC++ 5.0, you're writing a 32-bit app. If you're writing a 32-bit app, why do you care about the I/O port used by the printer? You can't access it anyway.

Or are you writing a device driver?

.B ekiM

0
 

Author Comment

by:talsp
ID: 1177949
I write a 32bit app but in win95, so we can access the I/O port.
0
 
LVL 32

Accepted Solution

by:
jhance earned 30 total points
ID: 1177950
>I write a 32bit app but in win95, so we can access the I/O port.

No, you can't.  If it's a 32-bit app you will not be able to access the IO port even under Win95.  To do it from a Win32 program, you have to write (or use) a VxD.

Under Win95 you can, however, run a 16-bit program that can have direct access to the IO ports.

0
 

Author Comment

by:talsp
ID: 1177951
so how do i write this VxD stuff? or use one?
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
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 member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

760 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

17 Experts available now in Live!

Get 1:1 Help Now