🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.vbasic
Article #104897

VB.Net i druk do LPT1

#104897
From: Romek
Date: Tue, 19 Jun 2012 10:48
19 lines
1417 bytes
Witam!
Próbuję wydrukować coś do LPT1 i nie mogę sobie poradzić.
Następująca instrukcja wywala mi błąd:
FileOpen(1, "lpt1", OpenMode.OutPut)

Podobna instrukcja w C++ działa poprawnie:
FILE *fp=FOpen("lpt1", "w");
fpritf(fp, "What's up, Doc?\n");
fclose(fp);

W VBA instrukcja działa też bez zarzutu:
Open "lpt1" For Output As #1
Write #1, "Ala ma kota"
Close #1

Korzystam z VS2005.

Pozdrawiam
Romek
Technical Details
Message-ID: <jrpljr$h3m$1@mx1.internetia.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.nask.pl!news.nask.org.pl!news.internetia.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!news.nask.pl!news.nask.org.pl!news.internetia.pl!not-for-mail
From: "Romek" <romul2000@poczta.onet.pl>
Newsgroups: pl.comp.lang.vbasic
Subject: VB.Net i druk do LPT1
Date: Tue, 19 Jun 2012 12:48:58 +0200
Organization: Netia S.A.
Lines: 26
Message-ID: <jrpljr$h3m$1@mx1.internetia.pl>
NNTP-Posting-Host: 77-253-232-159.ip.netia.com.pl
X-Trace: mx1.internetia.pl 1340103100 17526 77.253.232.159 (19 Jun 2012 10:51:40 GMT)
X-Complaints-To: abuse@inetia.pl
NNTP-Posting-Date: Tue, 19 Jun 2012 10:51:40 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157
X-RFC2646: Format=Flowed; Original
X-Tech-Contact: usenet@internetia.pl
X-Newsreader: Microsoft Outlook Express 6.00.2900.5931
X-Priority: 3
X-Server-Info: http://www.internetia.pl/
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit