cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/15/03:16:54

From: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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,&regs,&regs);
> }
> 
> 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                *
*************************************************************

- Raw text -


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