krf@ral.rpi.edu (Keith R. Fieldhouse) (03/25/91)
I'm having a bit of trouble producing a HP printer handler class in Turbo C++. As part of the constructor for my class I open a stream (which I call "printerstream". When building the class I pointed printerstream at a file "foo.txt" so that I could debug my output more easily. To check my LaserJet handling class, I would COPY /B to PRN: When all seemed to work, I changed the open in for printerstream to open "prn" instead. For my printer classes that do not include downloaded fonts, all continues to work fine. When I try to use the LJ class, however, the printer simply beeps at me and doesn't print anything. I am setiting the ios::binary flag when opening the stream. My assumption is that I have to do something to the PRN: device as well, but I'm having trouble finding out just what I need to do. My assumption is that some of the font being sent down is getting munged by the driver. If anybody out there has any light to shed, I'd be very greatful. Thanks, - Keith -- Keith R. Fieldhouse krf@ral.rpi.edu "READY?" Center for Intelligent Robotic (518) 276-6758 Systems for Space Exploration (CIRSSE) CII 8313 Rensselaer Polytechnic Institute Troy, New York 12180-3590