🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2319

How to drive the LPT port lines ?

#2319
From: didier
Date: Wed, 28 Jun 2006 06:38
28 lines
2051 bytes
Hi everybody,

I have to drive the output lines of the LPT (parallel) port
of my machine. The purpose is to trace with an oscilloscope
the exact duration of some tasks : I do that with setting a 
LPT line at 1 in entering the task, and clearing this line
in quiting the task. This works perfectly. This is a way for
debugging progs...As we have 12 useable lines on LPT port
(58 data + 4 CTRL out), this is quite interesting.

With Visual C++, i am using the _outp function associated with 
a free tool called userPort 1.0 provided by : www.writelog.com/support

the reason I use this crack tool is because I did not succeed in implementing the Win32 communications function (it works
well with serial com, but not with // port...).

With Borland C++, the outportb function (and generally I/O
basic functions) is no more supported. The HELP in C++6.0
indicates :

"You can use a third party VCL component, or use the Win32 API CreateFile and the Win32 communications functions. For more information on this technique, refer to the Using the communications functions help topic in the Microsoft WinSDK help files."

Has anybody already worked on this subject and find solutions ?
Any help would be appreciated.

Thanks all.
didier
Technical Details
Message-ID: <44a223e9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,62b9798118158f3d,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "didier" <jehanno@lal.in2p3.fr>
Sender: "didier" <jehanno@lal.in2p3.fr>
Reply-To: "didier" <jehanno@lal.in2p3.fr>
Subject: How to drive the LPT port lines ?
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 134.158.90.177     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <44a223e9$1@newsgroups.borland.com>
Date: 27 Jun 2006 23:38:33 -0700
X-Trace: newsgroups.borland.com 1151476713 207.105.83.66 (27 Jun 2006 23:38:33 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail