Re: Port LPT + ADA (whta do I wrong?)

From: Jerry van Dijk (jerry_at_jvdsys.demon.nl)
Date: 12/09/04


Date: 09 Dec 2004 09:17:09 +0100


Dennis Lee Bieber <wlfraed@ix.netcom.com> writes:

> On Tue, 7 Dec 2004 19:13:52 +0100, "Slawo - MIR"
> <mszajac@poczta.onet.pl> declaimed the following in comp.lang.ada:
>
> I don't know enough about the arguments you are using, but...
>
> > I try to assingn to variable (field of record) "struktura.Offset" and to
> > "struktura.OffsetHigh" some different values - 16#379# (address of input
> > register), 16#01#... and it didn't work :(
> >
> ...If you mean for 16#379# to be the physical I/O address for a
> parallel port, I suspect it isn't going to work at all.

The problem is not only that the the addresses in question are I/O addresses
instead of memory addresses, but also that NT, W2K and XP do not allow a
user-lever program to access them.

The easiest solution to this program is to use one of the the generic I/O port
device drivers, for example see:

        http://www.beyondlogic.org/porttalk/porttalk.htm

succes,
Jerry.

-- 
--  Jerry van Dijk
--  Leiden, Holland
--
--  'Tradition is not the worship of ashes, but the preservation of fire.'
--                                               Gustav Mahler (1860-1911)


Relevant Pages

  • RE: Parallel port driver service failed to start
    ... I get the same error message and all my hardware seams to work fine. ... suspect it has something to do with service pack 2. ... the Parallel port driver, under, service.msc, found nothing. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Reading from parallel port via ECP and DMA
    ... ReadFile doesn't care. ... ECP mode before you begin. ... I suspect this page will help you: ...
    (microsoft.public.development.device.drivers)