|
From: Abhijit S. <mu...@gm...> - 2003-06-10 04:10:41
|
> It may be possible to
> redirect the entire file output to the printer from dos using something
like
> "c:\filename.exe >> lpt1" or something like that.
Actually, that's `prn' in DOS. You can print directly by opening a file
using prn as the name. For example:
ofstream prn("prn");
if(!prn)
{
clog << "Printer not found" << endl;
}
else
{
// Print
prn.close();
}
Or in C, use fopen(), fprintf(), etc.
HTH.
________________________________________
Abhijit Shylanath
http://mudeth.tripod.com/
|