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.
1.Create a destination directory for the new minidriver files.
2.Copy the following directories from the DDK sample files to the destination directory created in step 1:
·\src\print\epson9\ifi
·\src\print\epson9\pfm
·\src\print\epson9\ctt
·\src\print\epson9\rle
That is, if your destination directory is named MYDRIVER, you will now have the following directories:
·...\MYDRIVER\ifi
·...\MYDRIVER\pfm
·...\MYDRIVER\ctt
·...\MYDRIVER\rle
3.Delete the .IFI files from your ......\MYDRIVER\ifi directory and the .RLE files from the ......\MYDRIVER\rle directory created in step 2.
4.Start Unitool and choose File/Open. Enter ...\src\print\epson9\epson9.w31 in the File Name: text box and click OK. Unitool opens the Printer Data, Fonts, and CTT windows which contain information extracted from the epson9.w31 file.
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:
·<driver_name>.RC
·<driver_name>.GPC
·<driver_name>.RC$
5.Set up the minidriver's Printer Data window. You can start by opening the Model Data dialog box (choose Printer Data/ModelData) and deleting the unsupported models provided by the sample .W31 file you opened in step 3. For example, you could delete all but the Epson Compatible 9 Pin model and use this as the template for the models included in your minidriver.
Make the changes in each of the following dialog boxes accessed under the Printer Data menu, as appropriate for your minidriver:
·Paper Destinations dialog box
·Download Information dialog box
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.
6.When all the Printer Data entries have been made, you can edit the .PFM files in the FONTS window and the CCT files in the CCT window. You only need to edit those files that relate to fonts and character translation tables supported by your printer.
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).
7.When all changes are complete in the FONTS and CCT windows. exit Unitool and proceeed with Converting a Minidriver to Windows NT to convert the minidriver to Windows NT format.