## Using Your DDK

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

### 32-Bit Mini-Driver 2 Hardcopy Printer Driver Sample

Driver Description:

The 32-Bit Mini Driver 2 Printer Driver is a sample printer driver. From the source code provided, an OS/2 device driver can be created. For detailed information, refer to the README file in the DDK\PRINT\SRC\OSDD\ MINI directory on the CD-ROM.

Compilers/Assemblers Required:

         IBM CSet ++ V2.11 Compiler

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

3.Change the directory to DDK\PRINT\SRC\OSDD\MINI

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

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

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

Files Created by Successful Build:

         Retail Version:
         Directory:  \DDK\PRINT\OBJ\OS2C\RETAIL\OSDD\MINI

         o  MINI.DRV

         Debug Version:
         Directory:  \DDK\PRINT\OBJ\OS2C\DEBUG\OSDD\MINI

         o  MINI.DRV