PRB: "Cannot Find COMMDLG.DLL" When Changing Font or Printing

ID: Q95239

The information in this article applies to:

SYMPTOMS

When you try to print by choosing Print from the File menu, or try to change fonts by choosing Fonts from the Text menu, the error message "Cannot find COMMDLG.DLL" occurs, or the message "Cannot open file" occurs when you try to print, and the Font dialog box won't appear when you try to change a font.

CAUSE

FoxPro for Windows is trying to access a Windows system file called COMMDLG.DLL. If this file is corrupted or missing from the WINDOWS\SYSTEM subdirectory, one of the above error message occurs.

RESOLUTION

If you are running FoxPro with Microsoft Windows operating system version 3.1, replace COMMDLG.DLL by expanding the file from Disk 4 of the Windows 3.1 disks (5.25 inch or 3.5 inch) to the WINDOWS\SYSTEM subdirectory.

MORE INFORMATION

Both Windows and FoxPro will start up without any errors if the COMMDLG.DLL file is missing or corrupted.

Additional reference words: FoxWin 2.50 2.50a err msg errmsg KBCategory: kbprg kberrmsg kbprb KBSubcategory: FxprintFont

Last Reviewed: June 26, 1995