A custom application that uses the C runtime (Msvcrt.dll) may unexpectedly quit on a computer that is running Windows Millennium Edition, Windows 98, or Windows 95

Article translations Article translations
Article ID: 895959 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

When you run a custom application that uses the C runtime (Msvcrt.dll) on a computer that is running Microsoft Windows Millennium Edition, Microsoft Windows 98, or Microsoft Windows 95, the application may unexpectedly quit (crash).

CAUSE

This issue may occur if the wrong version of the Msvcrt.dll file is present in the C:\Windows\System folder. The wrong version of the Msvcrt.dll file may have been installed by a beta program or by a third-party program.

RESOLUTION

To resolve this issue, restore a version of the Msvcrt.dll file that is compatible with Windows Millennium Edition, with Windows 98, or with Windows 95. To do this, use one of the following methods, depending on the operating system that your computer is running.

Windows Millennium Edition

To restore a version of the Msvcrt.dll file on a computer that is running Windows Millennium Edition, follow these steps:
  1. Start your computer in Safe Mode. To do this, restart your computer, press and hold down the CTRL key after your computer completes the Power On Self Test (POST), and then choose Safe Mode from the Startup menu.
  2. Click Start, point to Programs, point to Accessories, point to System Tools, and then click System Information.
  3. To start the System Configuration Utility, click System Configuration Utility on the Tools menu.
  4. In the System Configuration Utility, click Extract File.
  5. In the Extract one file from installation disk dialog box, type Msvcrt.dll, and then click Start.
  6. In the Restore from box, type c:\windows\options\install, or type the custom location of the installation files.

    Note Type c:\windows\options\install if you installed a Windows Millennium Edition retail product, or type c:\windows\options\cabs if your computer manufacturer installed Windows Millennium Edition.
  7. In the Save file in box, type c:\.
  8. Click OK to extract the file, and then click Yes to create a folder for the extracted file.
  9. Drag the extracted file from the folder on drive C to the C:\Windows\System folder, and then click Yes to overwrite the file.
  10. Restart your computer.
For more information about how to extract and replace a protected file in Windows Millennium Edition, click the following article number to view the article in the Microsoft Knowledge Base:
265371 How to extract and replace a protected file in Windows Me

Windows 98 or Windows 95

To restore a version of the Msvcrt.dll file on a computer that is running Windows 98 or Windows 95, follow these steps:
  1. Click Start, click Run, type SFC in the Open box, and then click OK.
  2. In the System File Checker dialog box, click Extract one file from installation disk.
  3. In the Specify the system file you would like to restore box, type Msvcrt.dll, and then click Start.
  4. In the Restore from box, browse to your Windows 98 or Windows 95 installation CD.

    Note If you have an original equipment manufacturer (OEM) installation of Windows 98 or of Windows 95, the installation files may be stored in the following location:
    C:\WINDOWS\OPTIONS\CABS
  5. In the Save file in box, type C:\, and then click OK. You receive the following message:
    Extract File
    The file has been successfully extracted.
  6. Click OK.
  7. Close the System File Checker dialog box.
  8. Restart the computer in MS-DOS mode. To do this, click Restart in MS-DOS mode in the Shut Down Windows dialog box, and then click OK.
  9. At the command prompt, type the following command, and then press ENTER:
    Rename C:\Windows\System\Msvcrt.dll Msvcrt.old
  10. At the command prompt, type the following command, and then press ENTER:
    Copy C:\Msvcrt.dll C:\Windows\System
  11. Restart the computer.

MORE INFORMATION

The latest version of the Msvcrt.dll file that is compatible with Windows Millennium Edition, with Windows 98, or with Windows 95 is version 6.0.9782.0. This version is included with Microsoft Visual Studio 6.0 Service Pack 6 (SP6). For more information about Visual Studio 6.0 SP6, visit the following Microsoft Developer Network (MSDN) Web page:
http://msdn2.microsoft.com/en-us/vstudio/aa718364.aspx
When you extract the Visual Studio 6.0 SP6 files, version 6.0.9782.0 of the Msvcrt.dll file is in the \os\system\ folder or in the VS6sp61.cab file. Specify this file in step 6 of the "Windows Millennium Edition" section or in step 4 of the "Windows 98 or Windows 95" section instead of using the installation files.

Properties

Article ID: 895959 - Last Review: January 22, 2007 - Revision: 2.0
APPLIES TO
  • Microsoft Windows Millennium Edition
  • Microsoft Windows 98 Second Edition
  • Microsoft Windows 95
Keywords: 
kbtshoot KB895959
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com