## Using Your DDK

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

### 32-Bit OMNI Printer Device Driver Sample

Driver Description:

The 32-Bit OMNI Printer Driver is a sample printer driver.

Compilers/Assemblers Required:

         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\OMNI

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

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

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

Files Created by Successful Build:

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

         o  OMNI.DRV
         o  OMNI.HLP

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

         o  OMNI.DRV
         o  OMNI.HLP