Mail Archives: djgpp/1998/04/23/18:46:16
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 -