delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/23/18:46:16

From: mhaavi AT sci DOT fi (Matti Haavikko)
Newsgroups: comp.os.msdos.djgpp
Subject: Interfacing with printer
Date: Thu, 23 Apr 1998 08:01:17 GMT
Organization: Scifi Communications International, http://www.sci.fi/, helpdesk AT sci DOT fi, +358 3 2899111
Lines: 19
Message-ID: <353ec46f.9950927@news.sci.fi>
NNTP-Posting-Host: clxv.ldyn.sci.fi
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I have run in trouble with my printer.
When I fopen() "lpt1", it gives no error even if no printer is
connected. 
When I fprintf() to the *FILE fopen gave me, it happily returns the
number of characters written, whether they really print or not.

How can I
* find out, if a printer is present?
* find out, if it is ready, or possibly initialize it?
* output some text to the printer and see, if the print operation
actually succeeded?

Or, even better, is there a freely available C++ printer class, which
would hide all the details away?


- Matti Haavikko

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019