Mail Archives: djgpp/1998/09/21/13:19:18
I've not tried this but here is what i'd try.
ofstrream YourStream;
YourStream.open(LP1:); //FOR printer port.
// then use Pxxx like cout << "Hi there" << endl;
If that works then in your case you need a driver;
Pxxx: in place of LP1:
so you must write your driver for dos. Most 10year old books on dos
may clue you in on that.
Regards Ian.
Blud Nightbringer wrote:
>
> I have a little DJGPP question:
>
> How do you (if it can be done) redirect an IOStream to send data to a
> port on the machine? For example, assume I have a stream called Pxxx,
> and I want all data inserted into it (via <<) to be sent to port xxx.
- Raw text -