delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/21/13:19:18

From: Ian Chapman <ichapman AT nt DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: A simple question...
Date: Mon, 21 Sep 1998 12:09:44 -0400
Organization: Bell Northern Research
Lines: 21
Message-ID: <36067A48.15A6439F@nt.com>
References: <35F53BE9 DOT 89A53A5B AT nightmail DOT com>
NNTP-Posting-Host: bcarib90.ca.nortel.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019