Article View: alt.comp.lang.visualbasic.ver3
Article #51Re: VB4 16-bit and parallel port
From: Bob May
Date: Thu, 21 Jun 2001 18:51
Date: Thu, 21 Jun 2001 18:51
17 lines
2276 bytes
2276 bytes
What I see your program doing is using INT17H (Printer Driver Entry Point) to handle the printer stuff. You're turning on bits 0, 1 and 2 with the first call and the second call is reading the "Out Of Paper" pin on the parallel port. Assuming that the InRegs.xx stay the same, that's the pin that you're sensing for the signal. Things that you need to do is to insure that the parallel port has pullups on the output lines that will drive the outside electronics properly (dongles, etc. tend to use some of the output lines as power supply lines!) or you will have problems there. I might note that the link between the hardware and what the software can do is becoming more tenous with each rendition of windoz and you may want to see what it takes to actually start dealing with the hardware through the windoz services rather than walking roughshod over the windoz restrictions. -- Bob May Remember that computers do exactly what you tell them to do, not what you think you told them to do.
Technical Details
Message-ID:
<tj4ggo2kkdnva0@corp.supernews.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mailReferences:
<agreenb-2106010005080001@dsl-64-34-93-149.telocity.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c949,bbe90fa7170f1617 X-Google-Attributes: gid10c949,public X-Google-Thread: f5f6f,bbe90fa7170f1617 X-Google-Attributes: gidf5f6f,public X-Google-Thread: 10ab99,bbe90fa7170f1617 X-Google-Attributes: gid10ab99,public X-Google-Thread: 108062,bbe90fa7170f1617 X-Google-Attributes: gid108062,public X-Google-Thread: 1023e1,bbe90fa7170f1617 X-Google-Attributes: gid1023e1,public X-Google-ArrivalTime: 2001-06-21 11:51:04 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Bob May" <bobmay@nethere.com> Newsgroups: alt.comp.lang.visualbasic.ver3,alt.lang.basic,comp.lang.basic.misc,comp.lang.basic.visual.3rdparty,cz.comp.lang.basic.visual Subject: Re: VB4 16-bit and parallel port Date: Thu, 21 Jun 2001 11:51:33 -0700 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <tj4ggo2kkdnva0@corp.supernews.com> References: <agreenb-2106010005080001@dsl-64-34-93-149.telocity.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Complaints-To: newsabuse@supernews.com Lines: 19