Microsoft KB Archive/895959

= 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 ID: 895959

Article Last Modified on 1/22/2007

-

APPLIES TO


 * Microsoft Windows Millennium Edition
 * Microsoft Windows 98 Second Edition
 * Microsoft Windows 95

-





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.
 * 1) In the Save file in box, type c:\.
 * 2) Click OK to extract the file, and then click Yes to create a folder for the extracted file.
 * 3) Drag the extracted file from the folder on drive C to the C:\Windows\System folder, and then click Yes to overwrite the file.
 * 4) 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:  Click Start, click Run, type SFC in the Open box, and then click OK. In the System File Checker dialog box, click Extract one file from installation disk. In the Specify the system file you would like to restore box, type Msvcrt.dll, and then click Start. 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

 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.

 Click OK.</li> Close the System File Checker dialog box.</li> 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.</li> At the command prompt, type the following command, and then press ENTER:

Rename C:\Windows\System\Msvcrt.dll Msvcrt.old

</li> At the command prompt, type the following command, and then press ENTER:

Copy C:\Msvcrt.dll C:\Windows\System

</li> Restart the computer.</li></ol>

<div class="moreinformation_section">

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 \ \system\ folder or in the VS6sp61.cab file. Specify this file in step 6 of the &quot;Windows Millennium Edition&quot; section or in step 4 of the &quot;Windows 98 or Windows 95&quot; section instead of using the installation files.

Additional query words: msvcrt.dll C runtime crash Win98 Win9x WinMe Me

Keywords: kbtshoot KB895959

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.