🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Communication via LPT port

#13915
From: Remy Lebeau (TeamB)
Date: Mon, 08 Sep 2003 21:49
26 lines
1701 bytes
"ScOe" <sven.savic@zg.hinet.hr> wrote in message
news:3f5cf06b@newsgroups.borland.com...
> How do i send something to LPT1 port on WinNT.

Use the CreateFile() and WriteFile() functions.

> I know how to send it with direct hardware access but that works only on
> Win9x.

Correct.  NT/2K/XP do not allow applications to access hardware directly,
separate device drivers are needed.

> I've tried with CreateFile and WriteFile (just like with COM port)
> but things get jammed on WriteFile and that function doesnt return

Please show your actual code.


Gambit


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.515 / Virus Database: 313 - Release Date: 9/1/03
Technical Details
Message-ID: <3f5cf93a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f5cf06b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,d0bebb98df6a923e
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-08 14:56:29 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f5cf06b@newsgroups.borland.com>
Subject: Re: Communication via LPT port
Date: Mon, 8 Sep 2003 14:49:16 -0700
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3f5cf93a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1063057722 207.175.226.26 (8 Sep 2003 14:48:42 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail