🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3591

Specifying printer ports

#3591
From: Rickey Thomas Tom
Date: Wed, 11 Nov 1992 15:09
22 lines
1476 bytes
    I have an application that requires printing through the parallel port. 
Normally, I could say something like

        fprintf( stdprn,".....");

However, I believe that this will send output to LPT1. But, in my application, I
am using LPT1 to do other things (interrupt driven data acquisition). I need a
way of forcing output to LPT2 within the program. I have several TSR program
which would work, but I would like to avoid using them if I can. 

Although my program does work (LPT1 for acquisition), LPT2 for printing, the
sucess of printing is unpredictable. Sometimes it prints OK, sometimes, it locks
the system. I suspect that part of the problem is related to the fact that I
don't explicitly force printing to LPT2. Am I right ???

Thnak you in advance

-- 
--------------------------------------------------------------------------------
Rickey Tom                       | Internet Style: aruba!rickt@uu2.psi.com
Programmer/Analyst Project ZE    | UUCP          : ...!uunet!uupsi2!aruba!rickt
--------------------------------------------------------------------------------
Technical Details
Message-ID: <1992Nov11.150935.20036@aruba.uucp>
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!torn!maccs!mcshub!aruba!ruby!rickt

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!torn!maccs!mcshub!aruba!ruby!rickt
From: rickt@aruba.UUCP (Rickey Thomas Tom)
Subject: Specifying printer ports
Message-ID: <1992Nov11.150935.20036@aruba.uucp>
Sender: rickt@aruba (Rickey Thomas Tom)
Date: Wed, 11 Nov 1992 15:09:35 GMT
Organization: Project Zed
Keywords: printer
Lines: 22