www.delorie.com/archives/browse.cgi | search |
From: | "D. Vrabel" <dv207 AT hermes DOT cam DOT ac DOT uk> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Is there a standard easy way to print to a printer? |
Date: | Fri, 16 Oct 1998 15:15:42 +0100 |
Organization: | University of Cambridge, England |
Lines: | 17 |
Message-ID: | <Pine.HPP.3.96L.981016151316.21533C-100000@tw100.eng.cam.ac.uk> |
References: | <706j31$rdu AT ds2 DOT acs DOT ucalgary DOT ca> |
NNTP-Posting-Host: | tw100.eng.cam.ac.uk |
Mime-Version: | 1.0 |
X-Sender: | dv207 AT tw100 DOT eng DOT cam DOT ac DOT uk |
In-Reply-To: | <706j31$rdu@ds2.acs.ucalgary.ca> |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Thu, 15 Oct 1998, Tim wrote: > I was wondering if somebody could tell me if there was a standard > easy way to print text to a standard text printer; is there just a > "stream" or something? (And if there's not, I was hoping somebody could > explain to me how else I could do it; All I want to do is to be able to > print out some really basic text, nothing fancy). Open a stream/file with the name of PRN which is the DOS filename for the printer. eg in C++ fstream printer( "PRN" ); in C FILE* printer=fopen( "PRN" "wb" ); (I think this is write I haven't written in C for ages. ) David.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |