Board index » delphi » Accessing the PC parallel port

Accessing the PC parallel port

Hey Delphis

I'm from Aalborg University in Denmark, and I'm writing a program in Delphi
3.0.
But I can't figure out how to program and access the PC Parallelport (SPP),
is there somebody who can help me?

If You can send me some exampels or links to some sorce codes, it'll be
superb.

Thanks alot
/Daniel

--------------------------------------------------------------
Daniel N?rgaard

E-mail: Danielnorga...@mail1.stofanet.dk
Webs: http://home1.stofanet.dk/Aabu_trup

 

Re:Accessing the PC parallel port


Hi

You didn't say which operating system you are working under.....

It it's Windows NT then you have a problem, in Windows NT the user isn't
allowed anywhere near the core of the system, so here you have to write
a hardware driver (very complex) or download an existing driver.
TVicPort is such a driver, it can be found at
http://www.entechatiwan.com/tools.htm and it costs a few dollars, maybe
you can find a free one somewhere...

If you are working under Windows 95/98 you're probably able to access
the port directly. I'm don't know if the "Port"-command is available in
Delphi 3, if not you might be able to solve it with inline assembler or
download a component that will give you a "Port"-command. You need to
know the base address of your parallel port and the offset addresses for
the different pins, this information can most certainly be found on the
internet.

Hope this helps
//Andreas

In article <8en64c$6e...@news101.telia.com>,
  "Daniel N?rgaard" <danielnorga...@mail1.stofanet.dk> wrote:

Quote
> Hey Delphis

> I'm from Aalborg University in Denmark, and I'm writing a program in
Delphi
> 3.0.
> But I can't figure out how to program and access the PC Parallelport
(SPP),
> is there somebody who can help me?

> If You can send me some exampels or links to some sorce codes, it'll
be
> superb.

> Thanks alot
> /Daniel

> --------------------------------------------------------------
> Daniel N?rgaard

> E-mail: Danielnorga...@mail1.stofanet.dk
> Webs: http://home1.stofanet.dk/Aabu_trup

Sent via Deja.com http://www.deja.com/
Before you buy.

Re:Accessing the PC parallel port


Check out my homepage, under the Delphi link, for howto's for 95&NT.
--
AndyC
http://pages.zoom.co.uk/andyc
The home of ACIDE and the GameGoy camera project

Quote
<andreas_bengts...@my-deja.com> wrote in message

news:8eogi7$20p$1@nnrp1.deja.com...
Quote
> Hi

> You didn't say which operating system you are working under.....

> It it's Windows NT then you have a problem, in Windows NT the user isn't
> allowed anywhere near the core of the system, so here you have to write
> a hardware driver (very complex) or download an existing driver.
> TVicPort is such a driver, it can be found at
> http://www.entechatiwan.com/tools.htm and it costs a few dollars, maybe
> you can find a free one somewhere...

> If you are working under Windows 95/98 you're probably able to access
> the port directly. I'm don't know if the "Port"-command is available in
> Delphi 3, if not you might be able to solve it with inline assembler or
> download a component that will give you a "Port"-command. You need to
> know the base address of your parallel port and the offset addresses for
> the different pins, this information can most certainly be found on the
> internet.

> Hope this helps
> file://Andreas

> In article <8en64c$6e...@news101.telia.com>,
>   "Daniel N?rgaard" <danielnorga...@mail1.stofanet.dk> wrote:
> > Hey Delphis

> > I'm from Aalborg University in Denmark, and I'm writing a program in
> Delphi
> > 3.0.
> > But I can't figure out how to program and access the PC Parallelport
> (SPP),
> > is there somebody who can help me?

> > If You can send me some exampels or links to some sorce codes, it'll
> be
> > superb.

> > Thanks alot
> > /Daniel

> > --------------------------------------------------------------
> > Daniel N?rgaard

> > E-mail: Danielnorga...@mail1.stofanet.dk
> > Webs: http://home1.stofanet.dk/Aabu_trup

> Sent via Deja.com http://www.deja.com/
> Before you buy.

Re:Accessing the PC parallel port


Ouch!

My eyes are swimming after that dark blue on black.  8)

Jim

Quote
"AndyC" <andycATzoomDOTcoDOT.uk> wrote:
>Check out my homepage, under the Delphi link, for howto's for 95&NT.

Re:Accessing the PC parallel port


Daniel,

I use ....

                           IOPort 2.1
                           ==========

                Copyright (c) 1998, 99 Erik Salaj

  Delphi and C++ Builder component for direct access to I/O ports on Windows
95,
  Windows 98 and Windows NT 4. Properties Port, PortByte, PortWord and
PortDWord
  enables to read and write bytes, words and doublewords from/to I/O ports.
New fast
  block data transfer methods enables to read and write megabytes of data
per second.

Trial version of IOPort component is free and fully featured. The only
  limitation is a dialog box with registering informations.

  Unlimited version you receive by E-mail on registration and payment.
  Go to http://www.{*word*104}magic.co.nz/winsoft for actual price and registering
  informations.

Cheers,
Jim

Quote
>Hey Delphis

>I'm from Aalborg University in Denmark, and I'm writing a program in Delphi
>3.0.
>But I can't figure out how to program and access the PC Parallelport (SPP),
>is there somebody who can help me?

>If You can send me some exampels or links to some sorce codes, it'll be
>superb.

>Thanks alot
>/Daniel

>--------------------------------------------------------------
>Daniel N?rgaard

>E-mail: Danielnorga...@mail1.stofanet.dk
>Webs: http://home1.stofanet.dk/Aabu_trup

Other Threads