EP2DCX Exit Codes and Errors                         
When EP2DCX completes its conversion, it returns an 8-bit exit code that
provides error information about the state of the conversion.  This exit
code is returned to DOS.  It is available to a program that has executed
EP2DCX using the DOS function call 4BH and then waited for the completion
of EP2DCX with the DOS function call 4DH.  This value is also available in
batch files using the ERROR LEVEL condition.
If the conversion was carried out error free, the exit code returned is
zero.  If an error occurred, bit 7 of the exit code determines the type of
error:  0 for a DOS error and 1 for a non-DOS error.
If the error is a DOS error (bit 7 = 0), bits 0 through 6 of the exit code
are encoded as follows:
  
  
    
      | Exit
        Code | 
     
    
      | Bit | 
      Dec | 
      Hex | 
       Description | 
     
    
      | 0 | 
      1 | 
      01h | 
       File: 01=Input
        File 
                              10=Output
        File 
                              11=PCX
        Merge File | 
     
    
      | 1 | 
      2 | 
      02h | 
     
    
      | 2 | 
      4 | 
      04h | 
       Operation: 00000=Open 
                                                      00001=Close 
                                                      00010=Read 
                                                      00011=Write 
                                                      00100=Seek | 
     
    
      | 3 | 
      8 | 
      08h | 
     
    
      | 4 | 
      16 | 
      10h | 
     
    
      | 5 | 
      32 | 
      20h | 
     
    
      | 6 | 
      64 | 
      40h | 
     
    
      | 7 | 
      128 | 
      80h | 
       Not Used | 
     
   
  
 
If the error is a non-DOS error (bit 7 = 1), the following exit codes are
returned:
     Exit Code Description
       80H     No input file specified.
       81H     Input and output files are the same.
       82H     Syntax error or invalid command line option specified.
       83H     99 page limit exceeded.
       84H     Program terminated by Ctrl-Break.
       85H     PCX header invalid.
       86H     PCX file type invalid.
       87H     PCX image too wide.
       88H     PCX image data format error.
       89H     PCX file has premature end-of-file.
       8AH     Disk full.
       8BH     Intel FAX hardware not found.
       8CH     Conversion aborted because of excessive printer control
               errors
See Also PCX File Errors Error Codes |