delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/25/00:40:07

Message-ID: <3568F699.FF79FA8B@post.comstar.ru>
Date: Mon, 25 May 1998 08:42:01 +0400
From: Dim Zegebart <zager AT post DOT comstar DOT ru>
Reply-To: zager AT post DOT comstar DOT ru
Organization: Comstar Ltd.
MIME-Version: 1.0
To: Sergi Marsal <smarsal AT abonados DOT cplus DOT es>,
"djgpp AT delorie DOT com" <djgpp AT delorie DOT com>
Subject: Re: print in djgpp
References: <6k1ut6$4gn$2 AT talia DOT mad DOT ibernet DOT es>


Sergi Marsal wrote:

> I have a problem when I try to detect when is the printer available por
> printing, I know it can be done because in other programming languages like
> clipper I can test it before printing, but I don't know how to do it in
> DJGPP
>

I use this code to do printing from my program :

          n=strlen(szMsg);
           for (i=0;i<n;i++)
              { s=biosprint(0,szMsg[i],0);
                if ((s&0x39)!=0x10)
                 { printer=PRINTER_ERR;
                   break;
                 }
              }

--
____ ____
|   \   /   Dim Zegebart
____/____

Moscow Russia
WWW - http://www.geocities.com/siliconvalley/pines/7817
DZcomm - comm library for Allegro
Palantir - multitasking kernel for Allegro (based on PDMLWP)


- Raw text -


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