The information in this article applies to:
- Microsoft Office 97 for Windows
- Microsoft Office for Windows 95, versions 7.0, 7.0a, 7.0b
SYMPTOMS
When you run the Microsoft Office Setup program, you receive the following
error message:
Unable to register Mfc40.dll
CAUSE
This error message appears because the versions of certain .dll files that
exist in the Windows\System or Winnt\System32 folder are the wrong
versions.
RESOLUTION
To resolve this problem, use the following procedure.
Locate and Rename Files
To find and rename the files, follow these steps:
- Use Microsoft Windows Explorer to locate the Mfc40.dll file.
By default, this file is in the Windows\System folder (under Microsoft
Windows 95) or in the Winnt\System32 folder (under Microsoft Windows NT
4.0).
NOTE: If you are unable to find this file, click Options on the View
Menu in Windows Explorer. Click the View tab, click Show All and click
OK.
If you cannot find the file in either of the folder locations, use the
Find File feature to locate it. To do this, follow these steps:
a. Click Start, point to Find, and then click Files Or Folders.
b. In the Find dialog box, click the Name & Location tab.
c. In the Named box, type the file name.
In this case, the file name is Mfc40.dll.
d. In the Look In box, type or select drive C.
e. Click to select the Include Subfolders check box.
f. Click Find Now.
g. All copies of the file that exist on your system are listed in the
lower portion of the Find dialog.
h. Make a note of the location of all copies of the file.
- After you locate the Mfc40.dll file, rename it. To rename the file,
right-click the file name, and click Rename on the shortcut menu. Type
"Mfc40.bak" (without the quotation marks), and then press ENTER to
rename the file. Rename all copies of the Mfc40.dll file.
NOTE: If you receive an error message that indicates that you cannot
rename the name, go to the "What to Do If the File Is in Use and Cannot
Be Renamed" section.
- Repeat step 1 to locate and rename the Msvcrt40.dll file to
Msvcrt40.bak. Rename all copies of the Msvcrt40.dll file.
- Run the Microsoft Office Setup program. If the Setup program runs
in maintenance mode, click Reinstall. Otherwise, choose the type of
installation that you want to perform.
What to Do If the File Is in Use and Cannot Be Renamed
In some cases, Windows 95 or Windows NT 4.0 may be using the Msvcrt40.dll
or Mfc40.dll file. If this is the case, do the following to replace the
file:
- Restart your computer, but press and hold the SHIFT key to disable
all startup programs.
- Close all tasks except Systray and Explorer. To do this, press
CTRL+ALT+DEL to display the Task List. In the Close Program dialog box,
click the task you want to close, and then click End Task.
- Use the steps in the "Locate and Rename Files" section to rename the
existing Msvcrt40.dll file to Msvcrt40.bak. Then rename the existing
Mfc40.dll file to Mfc40.bak.
- When you restart your computer, you may receive an error message
that indicates that Msvcrt40.dll or Mfc40.dll cannot be found. If
this occurs, click OK.
- Run the Microsoft Office Setup program. The Microsoft Office Setup
program installs both the Mfc40.dll and Msvcrt40.dll files.
MORE INFORMATION
The error message listed in the "Symptoms" section may appear when certain
.dll files are not the version that the Setup program expects to find. The
files may be the "wrong" version because of hardware or BIOS (basic
input/output system) conflicts or Microsoft Windows 95 or Windows NT
registry problems.
Some programs install different versions of the Mfc40.dll and the
Msvcrt40.dll files from the versions the Microsoft Office Setup program
installs. If one of the files is the wrong version, the Microsoft Office
Setup program may fail to complete successfully.
Both Microsoft Office 7.0 and Microsoft Office 97 install the following
versions of the Mfc40.dll and Msvcrt40.dll files:
Mfc40.dll Size: 924,432 bytes Version: 4.1.6139
Msvcrt40.dll Size: 326,656 bytes Version: 4.10.6038
REFERENCES
For more information about incorrect versions of Mfc40.dll and
Msvcrt40.dll, see the following article in the Microsoft Knowledge Base:
Article ID: Q153733
Title : PRB: Wrong Mfc40.dll and Msvcrt40.dll from ActiveX
CD-ROM Disc
Article ID: Q159685
Title : PRB: "Unable to Register Mfc40.dll" Error Installing
MS Access