🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.visualbasic.ver3
Article #33

How to Controll Parallel Port with Visual Basic?

#33
From: Կ�
Date: Sat, 17 Nov 2001 01:57
26 lines
2378 bytes
Hi, I'm trying to find simple code to control the parallel port from Visual
Basic 6.  I have it coded in QuickBASIC, but this is very primitive and I
would like to transfer it into VB.  The only problem is, I have no idea what
the commands are, all I can find is controlling the printer, but I just want
to send bits down the parallel port, not print a document.



This is the code I figured out for QB (where thenumber could be from 0 to
256):



OUT &H378, thenumer



Does anyone know how to do this simply in VB?



Thanks a lot



Kevin White
Technical Details
Message-ID: <0rjJ7.42400$wd1.3269601@news20.bellglobal.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1053fc,1546af30974a0198,start
X-Google-Attributes: gid1053fc,public
X-Google-Thread: 115e07,1546af30974a0198,start
X-Google-Attributes: gid115e07,public
X-Google-Thread: 110e3b,1546af30974a0198,start
X-Google-Attributes: gid110e3b,public
X-Google-Thread: 1023e1,1546af30974a0198,start
X-Google-Attributes: gid1023e1,public
X-Google-Thread: 108062,1546af30974a0198,start
X-Google-Attributes: gid108062,public
X-Google-Thread: 10b997,1546af30974a0198,start
X-Google-Attributes: gid10b997,public
X-Google-Thread: fb992,1546af30974a0198,start
X-Google-Attributes: gidfb992,public
X-Google-Thread: f645d,1546af30974a0198,start
X-Google-Attributes: gidf645d,public
X-Google-ArrivalTime: 2001-11-16 17:56:48 PST
From: "Կ�" <someone@nowhere.com>
Newsgroups: alt.comp.lang.visualbasic.ver3,comp.lang.basic.visual,comp.lang.basic.visual.misc,comp.lang.visual.basic,cz.comp.lang.basic.visual,es.comp.lenguajes.visual-basic,it.comp.lang.visual-basic,japan.comp.lang.visual-basic
Subject: How to Controll Parallel Port with Visual Basic?
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <0rjJ7.42400$wd1.3269601@news20.bellglobal.com>
Date: Fri, 16 Nov 2001 20:57:43 -0500
NNTP-Posting-Host: 64.229.110.72
X-Complaints-To: abuse@sympatico.ca
X-Trace: news20.bellglobal.com 1005962044 64.229.110.72 (Fri, 16 Nov 2001 20:54:04 EST)
NNTP-Posting-Date: Fri, 16 Nov 2001 20:54:04 EST
Organization: Bell Sympatico
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail