Site Language
Site Search
Find our site useful?
Show your appreciation by making a donation.
Filed Under: General Errors   

What is Msvcrt.dll?

The Msvcrt.dll library file comprises a program code to enable programs written using Microsoft Visual C++ to function correctly on your Windows system. The DLL provides basic features such as string comparison tools and mathematical operations, (such as trigonometric operations), to the programmers. Most computers contain this file.

In this article, we are going to discuss some common errors related to MSvcrt.dll and the methods to repair these errors.

How to Fix Common Msvcrt.dll Errors?

If a program accessing the Msvcrt.dll is unable to find the procedure entry point in the file, you may receive error messages similar to the following when you start your Windows XP system:

Lsass.exe: Entry Point Not Found

The procedure entry point _resetstkoflw could not be located in the dynamic link library Msvcrt.dll.

Services.exe: Entry Point Not Found

The procedure entry point _resetstkoflw could not be located in the dynamic link library Msvcrt.dll.

When you select the OK button on the error message box, a blank desktop will be displayed on your screen. In this situation, although your mouse pointer will still be present and working, you will not have anything on the screen to click. Additionally, you will not be able to use your keyboard.

These errors usually occur if the original Msvcrt.dll file on your system is replaced with a third-party file that does not include the _resetstkoflw function required to recover from stack overflow.

To repair the issue of missing _resetstkoflw function, you will have to restore the original Msvcrt.dll file from the Windows XP installation CD-ROM. You can do this, by performing the steps listed below:

  1. Insert the Window XP installation CD-ROM in the CD drive and boot your PC from the CD-ROM.
  2. When the Welcome to Setup screen is displayed, press R to open Recovery Console.
  3. Next, press the number key that corresponds to the operating system installation you want to repair. (This is required only when you have multiple operating systems on your PC.)
  4. Login using a user with administrative privileges to your system.
  5. Next, on the Recovery Console screen type the following commands and press Enter after each command to execute them.
  6. cd system32
    ren msvcrt.dll msvcrt.bak
    F:
    cd \i386
    expand msvcrt.dl_ C:\windows\system32
    exit

Note: F: represents CD-ROM or DVD-ROM drive letter and C: represents the root drive letter where Windows is located.

The above steps replace the current Msvcrt.dll file with the original c msvcrt.dll file that has the following properties:

    • Modified 8.23.01
    • Size – 315 KB (322,560 bytes)
    • Version – 7.0.2600.0
    • Contains the _resetstkoflw function

On your Windows 98 or Windows ME operating system you may receive error messages similar to the ones listed below, if the files Msvcirt.dll and Msvcrt.dll are either, overwritten, missing or corrupt.

At PC startup:

Msvcirt.dll file is linked to missing export msvcrt.dll : ??_u@yapaxi@z

When you try to run an application:

The Msvcirt.dll file is linked to missing export msvcrt.dll

The above error is usually preceded by the error:

drive_letter:\Path\filename - a device attached to the system is not functioning.

To repair the errors in Windows ME, perform the following steps:

  1. Run the Msconfig command from Start > Run to open the System Configuration Utility window.
  2. On the General tab, select the Extract File button.
  3. In the Specify the system file you would like to restore box, type Msvcrt.dll, and then select Start.
  4. In the Save file in box, type C:\, and then select the OK button.
  5. Select Yes to confirm the creation of a folder.
  6. Repeat the above steps to extract the Msvcirt.dll file.
  7. Now, boot your PC with Windows Me startup disk, type the commands listed below at the prompt, and press Enter after each command to run them.
  8. Rename C:\Windows\System\Msvcrt.dll Msvcrt.bak
    Rename C:\Windows\System\Msvcirt.dll Msvcirt.bak
    Copy C:\Msvcrt.dll C:\Windows\System
    Copy C:\Msvcirt.dll C:\Windows\System

  9. After completing the above steps, remove the startup disk, and restart your PC.

To fix the error in Windows 98, follow the steps listed below:

  1. Run the SFC command from Start > Run.
  2. In the System File Checker dialog box that opens, select the Extract one file from installation disk option, type Msvcrt.dll in the Specify the system file you would like to restore box and select the Start button.
  3. Next, in the Extract File dialog box, in the Restore from box, browse to the Windows 98 installation CD.
  4. In the Save file in box, type C:\, and then select the OK button.
  5. Select OK to confirm your decision.
  6. Repeat the above steps for the Msvcirt.dll file.
  7. Next, restart your PC in MS-DOS mode, type the following commands at the prompt, and press Enter to run them:
  8. Rename C:\Windows\System\Msvcrt.dll Msvcrt.old
    Rename C:\Windows\System\Msvcirt.dll Msvcirt.old
    Copy C:\Msvcrt.dll C:\Windows\System
    Copy C:\Msvcirt.dll C:\Windows\System

  9. Finally, restart your PC in Normal mode.

Additional Recommendations...

Driver Update: Many errors are related to driver problems such as obsolete, outdated or incompatible drivers. A driver update tool is recommended to scan your system for corrupted and outdated drivers and to ensure that all your drivers stay up-to-date.