Structure of the Pen Calibration Applet Source Code

The functional structure of the pen calibration DLL is reflected in the entry points that it exports:


EXPORTS
WEP                @1 RESIDENTNAME
CalDlg             @2
Calibrate          @3
VerifyChangesDlg   @4
ErrMsgDlg          @5

The pen calibration application

The source modules that make up the pen calibration applet source code are listed in the following table along with a description of each module.

Module

Description

CAL.H

General header file for PENCAL.DLL

CALDLG.C

Conducts the calibration dialog with the user and writes the new configuration information to the pen driver key in the Registry.

CALERR.C

Calibration error handling routine.

CALERR.H

Defines the error messages that can be output by PENCAL.DLL; header file for CALERR.C.

CALINIT.C

Contains LibMain and WEP functions.

MAKEFILE

16-bit makefile for the DLL.

PENCAL.DEF

Definitions file.

PENCAL.DLG

Defines the pen calibration dialog box.

PENCAL.RC

Resources file.

PENCAL.RCV

Contains version strings read by the operating system.

RES.H

Resource header file for PENCAL.DLL.

UMULDIV.ASM

Multiplies signed 16.16 by 16.16 and returns 16.16 result.

_CALDLG.H

Dialog header file for PENCAL.DLL