Solved

Getting LPT Address

Posted on 1998-05-15
4
460 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best book to learn C++ 4 87
trigs fail! I thought I knew how to do trignometry 3 82
Beginner to Unreal Engine 4 5 104
How do I get Window Title of all opened process? 4 33
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…
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 viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
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.

756 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