## Using Your DDK

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

### Palette Display Test Tool

Tool Description:

The Palette Display Test Tool is used to display the colors supported by the hardware palette. The tool is extremely easy to use and allows refreshing or repainting of the window in which the palette colors are displayed. The source code is simple and written to clearly demonstrate the steps involved.

Compilers/Assemblers Required:

         IBM C Set ++ V2.01

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 Visual Age 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\VIDEO\SRC\VIDEO\TESTTOOL\PALDISP.

4.Invoke NMAKE on the resident makefile.

Build Notes:

The DDK provides the executable PALDISP, which is located in the DDK\ TESTCERT\DISPLAY\FUNCTION\PALDISP directory. If you have modified and rebuilt this test tool, you need to update this executable by copying the file from the DDK\VIDEO\REL\OS2C\RETAIL\BASE\TEST\VIDEO directory.

Files Created by Successful Build:

         Directory:  \DDK\VIDEO\REL\OS2C\RETAIL\BASE\TEST\VIDEO

         o  PALDISP.EXE