From: Thomas Demmer Newsgroups: comp.os.msdos.djgpp Subject: Re: Network printer Date: Fri, 15 May 1998 08:11:41 +0200 Organization: Lehrstuhl fuer Stroemungsmechanik Lines: 36 Message-ID: <355BDC9D.E8B44C69@LSTM.Ruhr-UNI-Bochum.De> References: <355BA22E DOT 7ED3 AT pacbell DOT net> NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk anonymous wrote: > > Hello, > My name is Juan I have a simple question to any one that can help me > or, point me to the right direction. Thanx in advance. > > ok this function eject a sheet of paper from a local printer. > > void prnchar(char 0x0c){ > regs.h.ah=0x00; > regs.h.ah=0x0c; > regs.x.dx=LPT1; > int86(0x17,®s,®s); > } > > how can I do this to a network printer (Netware). You usually have "capture" to map local ports to Netware Queues, so just fopen() LPTx, fput a LF and fclose() it. Where is the connection to DJGPP? -- Ciao Tom ************************************************************* * Thomas Demmer * * Lehrstuhl fuer Stroemungsmechanik * * Ruhr-Uni-Bochum * * Universitaetsstr. 150 * * D-44780 Bochum * * Tel: +49 234 700 6434 * * Fax: +49 234 709 4162 * * http://www.lstm.ruhr-uni-bochum.de/~demmer * *************************************************************