Board index » delphi » Parallel Port access

Parallel Port access

I need to implement a series of switches to control a program via the
parallel port.

Is there any function in Delphi1 or Delphi2 that does that?
Is there any API function that I could use?

Long time ago I've done this in Turbo Pascal 6 using the DOS
interrupts :) - I assume that I should be able to read/write on the
LPT port from Delphi as well :)

Thanks a lot,
Mircea.

 

Re:Parallel Port access


In article <36103fcc.10730...@nntp.sa.gov.au>, sni...@rgh.sa.gov.au says...

Quote

>I need to implement a series of switches to control a program via the
>parallel port.

>Is there any function in Delphi1 or Delphi2 that does that?
>Is there any API function that I could use?

Check out Check out _Parallel Port Complete_ by Jan Axelson at
http://www.lvr.com/parprtib.htm.

--
Christo Crause
Thermal Separations Research
University of Stellenbosch
South Africa

Re:Parallel Port access


Mircea Nita schrieb:
Quote

> I need to implement a series of switches to control a program via the
> parallel port.

> Is there any function in Delphi1 or Delphi2 that does that?
> Is there any API function that I could use?

This depends on the operating system. While Win95+98 are
"tolerant", WinNT would never allow an application program
to access the port addresses directly.

http://www.geocities.com/SiliconValley/2926/tp.html
chapter "windows", look for "TinyPort" and others.

Regards, Franz Glaser

Re:Parallel Port access


Wed, 30 Sep 1998 16:55:38 +0200, "Ing. Franz Glaser"
<meg-gla...@eunet.at> napisa3(a):

Quote
>> I need to implement a series of switches to control a program via the
>> parallel port.

>> Is there any function in Delphi1 or Delphi2 that does that?
>> Is there any API function that I could use?

>This depends on the operating system. While Win95+98 are
>"tolerant", WinNT would never allow an application program
>to access the port addresses directly.

but he wants api not direct access, and there are api functions
Create, Read, Write, Close <-File

Other Threads