The version of Unitool shipped with this DDK is a 16-bit application. Consequently, Unitool does not operate satisfactorily without some preparation of the resource files. The sample.RC files provided with the DDK cannot be read by Unitool, so if you want to use the sample files as a template for a new minidriver, you must use the .W31 files. When you have finished using Unitool to enter pertinent printer and font data, you must convert the .PFM files to .IFI files (refer to Converting a Minidriver to Windows NT for additional information) and also convert the .CTT files to .RLE files (see NT RLE Character Mapping and Using the RLE File Format for information).
You will also need to run ntgpcedt.exe, a program that specifies the NTGPC extensions data. Refer to NTGPC Data Extensions.
The following steps outline the procedure for creating a new minidriver while using one of the samples as a template.
Note The following procedure uses the epson9 sample files as an example template.
That is, if your destination directory is named MYDRIVER, you will now have the following directories:
You may get a message box stating that the file is read-only; click OK since you wont need to overwrite the epson9.w31 file.
At this point you can do a File/SaveAs to create a new file for your minidriver. Enter the pathname of the destination directory (created in step 1) and name of the new driver (using the form <driver_name>.GPC) in the File Name: list box.
Unitool writes the following files to the \MYDRIVER directory:
Make the changes in each of the following dialog boxes accessed under the Printer Data menu, as appropriate for your minidriver:
The Validate Dialog Boxes function on the Options menu can be selected to automatically validate each entry. When this function is active, a dialog box is selected, and OK, Next, or Previous is selected (a choice that causes the current dialog box contents to be saved rather than ignored. Unitool performs limited error checking on the contents of that dialog box and if any potential problems are found, a dialog box warning of problems is displayed. These warnings can be ignored or the dialog box can be displayed to correct the errors. If the Validate Dialog Boxes command is not selected, error checking does not occur. This command is enabled by default. For more information, see Unitool Error Messages.
In addition, Validate Now! on the Options menu can be selected to perform limited error checking on the contents of the currently loaded minidriver file. If any potential problems are found, a dialog box listing them is displayed.
Note Subsequent topics provide information relating to the setting of the minidriver's Printer Data window. Each topic provides a specific, detailed description for each category of information that can be set up in the minidriver's Printer Data window. Each topic also offers recommended values that can be entered based on the type of source minidriver to be built. For example, the page-control commands section recommends values to enter for the Diconix 150 Plus printer and for the HP LaserJet IIP.
You may need to close your <driver_name>.RC file in Unitool and edit this file with your text editor to add/delete the names of .PFM files as appropriate for your driver (these will be converted to .IFI files later). You may also need to name the .CTT files you are using and delete any .RLE filenames (the .CTT files willl be converted to .RLE files later).