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

Last reviewed: June 26, 1995
Article ID: Q95239
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 26, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.