🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

LPT timeout trapping?

#550
From: Joern Yngve Dahl-Stamnes
Date: Thu, 30 Jul 1992 13:27
21 lines
1543 bytes
Hello.

I'm doing a fprintf (stdprn,...) in program. The only problem is that if the
printer isn't on-line, I get this annoying message on the screen. The message
is annoying because my program is a screen oriented program.

Is there any way to trap this fault so that my program can display the message
(or my own message) on the screen when this happen? I've been looking in the
FAQ, but could not find it.

I'm programming in C (MS 5.1) under DOS 5.0 on a 386/33 if that helps.

Thanks in advance.

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+-+-+-+-+-+
* I went back to my mother,           * Joern Yngve Dahl-Stamnes           *
* I said, "I'm crazy ma, help me!"    * University of Trondheim            *
* She said, "I know how it feels son, * The Norwegian Institute of Tech.   *
* 'cause it runs in the family."      * Division of Physical Electronics   *
*       - The Who, Quadrophenia       * e-mail: dahls@fhydra.dnet.unit.no  *
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+-+-+-+-+-+
Technical Details
Message-ID: <0095E572.CDB34C80@FHYDRA.FYSEL.UNIT.NO>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!aun.uninett.no!ugle.unit.no!DAHLS@FHYDRA.FYSEL.UNIT.NO

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!aun.uninett.no!ugle.unit.no!DAHLS@FHYDRA.FYSEL.UNIT.NO
From: dahls@fhydra.dnet.unit.no (Joern Yngve Dahl-Stamnes)
Subject: LPT timeout trapping?
Message-ID: <0095E572.CDB34C80@FHYDRA.FYSEL.UNIT.NO>
Sender: news@ugle.unit.no (NetNews Administrator)
Reply-To: dahls@fhydra.dnet.unit.no (Joern Yngve Dahl-Stamnes)
Organization: University of Trondheim, NORWAY
Date: Thu, 30 Jul 92 09:27:57 EDT
Lines: 21