|
From: Lloyd A. <ll...@ea...> - 2004-02-18 17:52:54
|
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 = "\nToday's winning number is ";
int n1 = 17982;
ofstream outfile;
outfile.open("PRN");
outfile << s1 << n1 << endl;
outfile << '\x0D';
return 0;
}
Thanks Lloyd
|