🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Detecting LPT port address

#12447
From: Moshe Shahar
Date: Thu, 04 Dec 2003 11:58
44 lines
2145 bytes
"Vladimir Afanasyev" <avv@systema.kiev.ua> wrote:
>
>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.


Thanks,
Vladimir.

More questions :
Do the LPT work in rates like COM ?
How can I know that the LPT port in not used by other app ?

And more thanks
for any help,
Moshe.
Technical Details
Message-ID: <3fcf2f89$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fcc8afe$1@newsgroups.borland.com> <3fcca348$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-04 05:09:27 PST
From: "Moshe Shahar" <msachar@tiogatech.com>
Sender: "Moshe Shahar" <msachar@tiogatech.com>
Reply-To: "Moshe Shahar" <msachar@tiogatech.com>
Subject: Re: Detecting LPT port address
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 164.129.1.39     
X-Forwarded-For: unknown, unknown
References:  <3fcc8afe$1@newsgroups.borland.com> <3fcca348$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <3fcf2f89$1@newsgroups.borland.com>
Date: 4 Dec 2003 04:58:49 -0700
X-Trace: newsgroups.borland.com 1070542729 207.105.83.66 (4 Dec 2003 04:58:49 -0700)
Lines: 44
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail