?
Solved

Getting LPT Address

Posted on 1998-05-15
4
Medium Priority
?
473 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
[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
  • 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 60 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

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
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.
Suggested Courses

801 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