From: buers AT gmx DOT de (Dieter Buerssner) Newsgroups: comp.os.msdos.djgpp Subject: Re: need info Date: 14 Apr 2000 15:41:54 GMT Lines: 45 Message-ID: <8d7lbn.3vvqipv.0@buerssner-17104.user.cis.dfn.de> References: <8d779a$dsq$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> NNTP-Posting-Host: pec-114-248.tnt7.s2.uunet.de (149.225.114.248) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 955726914 7662798 149.225.114.248 (16 [17104]) X-Posting-Agent: Hamster/1.3.13.0 User-Agent: Xnews/03.02.04 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hans-Bernhard Broeker wrote: [John want's to print graphical objects] >There are two entirely separate issues in this question: > >1) Sending some data to the printer >2) Constructing the data so they do what you want > >Only 1) is really on-topic in this newsgroup, I think. The answer in a >nutshell could be as simple as 'write them to the stdprn stream'. Or fopen the printer device in binary mode. Something like #define PRINTER_DEVICE "prn:" FILE *fpprn = fopen(PRINTER_DEVICE, "wb"); may be easier to port. Also, the availability of stdprn in DJGPP depends on compiler flags. (IIRC, it won't work with -ansi.) >For information about 2), you'll have to tell what type of printer you >need it for, and ask the question again in another newsgroup that >deals with printer low-level programming, I think. GRX seems to have printing support in its newest version. I have not used that feature, though. John, if you not have installed GRX already, please read the FAQ before installing. It is not that easy, as it should be. Also, before installing the patches mentioned in the FAQ, you may need to install the grx23up1.zip available from the GRX homepage. I think, parts of that update affect the printing routines. And at last, GRX does not unpack into the contrib directory by default. So, when you unpack it, your current directory should already be the contrib directory. A different approach might be to use vogl, an Open GL look alike. I have not used this library for ages, but I am sure, that there was a postscript driver, and probably many more printer drivers. If you don't have a postscript printer, ghostscript might help. Unforunately, I don't have an URL for vogl. -- Regards, Dieter