home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / msdos / programm / 8168 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.5 KB  |  33 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!mcsun!sunic!aun.uninett.no!ugle.unit.no!DAHLS@FHYDRA.FYSEL.UNIT.NO
  3. From: dahls@fhydra.dnet.unit.no (Joern Yngve Dahl-Stamnes)
  4. Subject: LPT timeout trapping?
  5. Message-ID: <0095E572.CDB34C80@FHYDRA.FYSEL.UNIT.NO>
  6. Sender: news@ugle.unit.no (NetNews Administrator)
  7. Reply-To: dahls@fhydra.dnet.unit.no (Joern Yngve Dahl-Stamnes)
  8. Organization: University of Trondheim, NORWAY
  9. Date: Thu, 30 Jul 92 09:27:57 EDT
  10. Lines: 21
  11.  
  12. Hello.
  13.  
  14. I'm doing a fprintf (stdprn,...) in program. The only problem is that if the
  15. printer isn't on-line, I get this annoying message on the screen. The message
  16. is annoying because my program is a screen oriented program.
  17.  
  18. Is there any way to trap this fault so that my program can display the message
  19. (or my own message) on the screen when this happen? I've been looking in the
  20. FAQ, but could not find it.
  21.  
  22. I'm programming in C (MS 5.1) under DOS 5.0 on a 386/33 if that helps.
  23.  
  24. Thanks in advance.
  25.  
  26. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+-+-+-+-+-+
  27. * I went back to my mother,           * Joern Yngve Dahl-Stamnes           *
  28. * I said, "I'm crazy ma, help me!"    * University of Trondheim            *
  29. * She said, "I know how it feels son, * The Norwegian Institute of Tech.   *
  30. * 'cause it runs in the family."      * Division of Physical Electronics   *
  31. *       - The Who, Quadrophenia       * e-mail: dahls@fhydra.dnet.unit.no  *
  32. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+-+-+-+-+-+
  33.