PRB: Windows 3.0 Printer Driver and PrintDlg Common Dialog Box

ID Number: Q85172

3.10

WINDOWS

Summary:

SYMPTOMS

When a printer driver developed for Windows version 3.0 is used

with Windows version 3.1 with the PrintDlg dialog box provided by

the common dialog boxes dynamic-link library (DLL), erratic

behavior results.

CAUSE

The printer driver uses the DM_DRIVERDATA member of the DEVMODE

data structure. The PrintDlg dialog box overwrites portions of the

memory used to store DM_DRIVERDATA.

RESOLUTION

Use the appropriate printer driver that has been updated for

Windows 3.1.

Additional reference words: 3.00 3.10