🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12544

Re: Detecting LPT port address

#12544
From: Vladimir Afanasyev
Date: Tue, 02 Dec 2003 13:35
30 lines
1857 bytes
Hi Moshe,

"Moshe Shahar" <msachar@tiogatech.com> wrote:
>
>Hi,
>
>I need to write through the LPT port. 
>I found dll (inpout32) that enables to r\w port address of the OS.
>
>My questions are :
>Can I detect the availables LPTs at runtime ?
>And if so, how can I get the port address of it, at runtime, too ?
>Can I config the LPT baud rate of the LPT ?

You can know the port address - download from codecentral:
Hardware configuration in Windows
http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=20338

For working with LPT read articles:
I/O Ports Uncensored - 1 - Controlling LEDs (Light Emiting 
Diodes) with Parallel Port. By Levent S. 
http://www.codeproject.com/csharp/csppleds.asp

I/O Ports Uncensored Part 2 - Controlling LCDs 
(Liquid Crystal Displays) and VFDs (Vacuum Fluorescent 
Displays) with Parallel Port. By Levent S. 
http://www.codeproject.com/csharp/cspplcds.asp

Vladimir.
Technical Details
Message-ID: <3fcca348$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fcc8afe$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,7c1a925bc86d06a9
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-02 06:39:17 PST
From: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Subject: Re: Detecting LPT port address
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 212.82.216.226     
X-Forwarded-For: 192.168.0.147
References:  <3fcc8afe$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <3fcca348$1@newsgroups.borland.com>
Date: 2 Dec 2003 06:35:52 -0700
X-Trace: newsgroups.borland.com 1070375752 207.105.83.66 (2 Dec 2003 06:35:52 -0700)
Lines: 30
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail