isprinter() for lpt2 & lpt3 
Author Message
 isprinter() for lpt2 & lpt3

Has anyone got a version of isprinter() or similar which works with lpt1
to lpt3 and with Clipper 5.3b ??

Thanks

Wayne Hulls
Business Software



Tue, 26 Jun 2001 03:00:00 GMT  
 isprinter() for lpt2 & lpt3
Wayne

NanFroum Library on the OASIS

        Oasis WWW  http://www.iag.net/~philb/
         FTP Site  ftp://ftp.iag.net/pub/clipper
      Clipper FAQ  http://www.iag.net/~philb/clipper.html

HTH
--
Steve Quinn
BRUTE Computer Services - Australia
http://www.brutecom.com.au

Quote:

>Has anyone got a version of isprinter() or similar which works with lpt1
>to lpt3 and with Clipper 5.3b ??

>Thanks

>Wayne Hulls
>Business Software




Tue, 26 Jun 2001 03:00:00 GMT  
 isprinter() for lpt2 & lpt3
On Fri, 08 Jan 1999 10:01:41 +1300, Wayne Hulls

Quote:

>Has anyone got a version of isprinter() or similar which works with lpt1
>to lpt3 and with Clipper 5.3b ??

>Thanks

>Wayne Hulls
>Business Software


Hi Wayne,

Terry Carmen wrote one and it is on the Oasis. I think that it is
called ISPRINT.ZIP

Regards,

Ross McKenzie
ValuSoft
Melbourne Australia



Tue, 26 Jun 2001 03:00:00 GMT  
 isprinter() for lpt2 & lpt3
On Fri, 08 Jan 1999 10:01:41 +1300, Wayne Hulls

Quote:

>Has anyone got a version of isprinter() or similar which works with lpt1
>to lpt3 and with Clipper 5.3b ??

>Thanks

>Wayne Hulls
>Business Software


Ca Tools III Rev. B -> PrintStat()


Tue, 26 Jun 2001 03:00:00 GMT  
 isprinter() for lpt2 & lpt3
Wayne -

I think the following works, if you have the compiler.

- Jon

// Microsoft C 8.00
//
// cl -c -AL -FPi -Gt0 -Gs -G2 -W4 -Oalt -Zl
//
#pragma warning(disable : 4001)
#include <extend.h>
#include <dos.h>
//
// Check printer status (0=LPT1, 1=LPT2 etc.)
//
static int isPrinter( int lpt )
{
        union _REGS     regs;
        int result = 0;

        if ( lpt >= 0 && lpt <= 2 )
        {
                regs.h.ah = 2;
                regs.x.dx = ( unsigned ) lpt;

                _int86( 0x17, &regs, &regs );

                result = ( regs.h.ah == 0x90 );
        }

        return result;

Quote:
}

//
// IsPrinterX( printer:NUMERIC ) - check printer busy status using int 17
//
CLIPPER ISPRINTERX( void )
{
        _retl( ( BOOL ) isPrinter( _parni( 1 ) ) );

Quote:
}



Quote:
> Has anyone got a version of isprinter() or similar which works with lpt1
> to lpt3 and with Clipper 5.3b ??

> Thanks

> Wayne Hulls
> Business Software




Tue, 26 Jun 2001 03:00:00 GMT  
 isprinter() for lpt2 & lpt3
Wayne,

the PD lib NANFORUM contains a function ft_isprint() .

HTH
Norbert Sommer



Tue, 26 Jun 2001 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. To detect the LPT2 & LPT3 printer

2. How to print to Lpt2: lpt3: etc..

3. Checking existance of LPT2, LPT3...

4. printing to lpt2,lpt3,etc

5. Printing to lpt2, lpt3, etc using Mf Cobol on win95/98

6. printing to lpt2 and lpt3

7. Capturing of LPT2 in Windows-NT after set printer to LPT2 in Clipper5.2

8. Isprinter & CPMI.LIB

9. LPT1 & LPT2

10. Can't print to LPT3

11. Printing on LPT3

12. IsPrinter() in Windows

 

 
Powered by phpBB® Forum Software