|
From: Mats L. <mat...@to...> - 2004-02-18 18:33:42
|
I did a quick lookup on google and found this http://www.csse.uwa.edu.au/programming/text/tutorial2/html/xfstream.cc.ht= ml Maybe what you look for? /M ----- Original Message -----=20 From: Lloyd Ashmore=20 To: dev...@li...=20 Sent: Wednesday, February 18, 2004 6:47 PM Subject: [Dev-C++] Output to printer When using this code below is there a different code other than "PRN" = to send the code to the printer. I have tried USB001 where a printer is attached. Using Windows XP. #include <fstream.h> int main() { char* s1 =3D "\nToday's winning number is "; int n1 =3D 17982; ofstream outfile; outfile.open("PRN"); outfile << s1 << n1 << endl; outfile << '\x0D'; return 0; } Thanks Lloyd |