## Using Your DDK

[prev][next][parent][TOC]

### 32-Bit PostScript Printer Driver

Driver Description:

The PostScript 32-Bit Printer Driver is based on the Adobe PostScript language. There are several tools provided with the driver that do not require compilation. These executables reside in the directories DDK\PRINT\ SRC\OSDD\PSCRIPT\POST32\AFM and DDK\PRINT\SRC\OSDD\PSCRIPT\POST32\PPD. These tools produce binary forms of AFM and PPD files. The POST32 driver is a 32-bit presentation device driver and therefore requires a 32-bit compiler.

Note: The AFM and PDD files are not modifiable and may not be altered in any way from their original form. See the IBM License Agreement included with this DDK.

Compilers/Assemblers Required:

         Microsoft MASM 5.1      (supplied with the DDK)
         IBM VisualAge C++ V3.0

Build Instructions:

1.Ensure the necessary compilers and assemblers are installed.

2.Run the SETCMPLR.CMD REXX command file located in the DDK\TOOLS directory. This command initializes environment variables to be used during the build.

e.g., SETCMPLR <MSCpath> <VACpath> <CSETpath> <DDKpath>

    Where <MSCpath> represents the Microsoft C 6.0 install directory
           <VACpath> represents the IBM VisualAge C++ install directory
           <CSETpath> represents the IBM C Set ++ install directory
           <DDKpath> represents the DDK install directory

Note: A period (.) may be substituted for a compiler directory that is not used during the build.

3.Change the directory to DDK\PRINT\SRC\OSDD\PSCRIPT\POST32

4.Use the following NMAKE example to create the appropriate device driver:

      e.g., "NMAKE RETOS2C ddkbld=1 > PSCRIPT.ERR 2>&1"
      where:
            "NMAKE is the build tool
            "RETOS2C" creates a retail driver
            "> PSCRIPT.ERR 2>&1" redirects all output to a file

       NMAKE RETOS2C ddkbld=1 > PSCRIPT.ERR 2>&1  (This builds the retail driver)
       NMAKE DBGOS2C ddkbld=1 > PSCRIPT.ERR 2>&1  (This builds the debug driver)

Files Created by Successful Build:

         Retail Version:
         Directory:  \DDK\PRINT\REL\OS2C\RETAIL\EN\OS2\DRIVERS\PSCRIPT

         o  PSCRIPT.DRV

         Debug Version:
         Directory:  \DDK\PRINT\REL\OS2C\DEBUG\EN\OS2\DRIVERS\PSCRIPT

         o  PSCRIPT.DRV