Home > Common Problem > body text

How to fix runtime error 339 on Windows 11/10

王林
Release: 2023-05-13 23:22:04
forward
6206 people have browsed it

Runtime error 339 may occur when running a program for a variety of reasons. Some of them may be that some ocx or dll files are missing, corrupted or the dll or ocx is not registered. This would be an annoying experience for the smooth execution of the application. Here are some possible error messages you may see for Runtime Error 339

Error – Runtime Error 339: Component DUZOCX32.OCX is not registered correctly or the file is missing.

Error – Runtime Error 339. Component MSMASK32.ocx or one of its dependencies is not registered correctly; the file is missing or invalid.

Error - Runtime error '339': Component 'FM20.DLL' or one of its dependencies was not registered correctly: the file is missing or invalid.

Error – Runtime Error 339 MSCOMCTL.OCX

As you can see in the above error message, you may encounter runtime errors for different ocx or dll files. Let us take an ocx file as an example and see how to fix this error below.

Method 1: Reinstall the application

Sometimes the DLL or ocx file is corrupted during incorrect installation or deleted during incorrect uninstallation. First, you can try reinstalling the application that is causing the error. This may help you recover corrupted dll or ocx files. Recheck after reinstalling to see if the problem persists. If the problem persists, move on to the next method.

Method 2: Replace the registered MSCOMCTL.OCX file

As mentioned above one of the reasons for the error may be due to the MSCOMCTL.OCX file. Let's see how to replace corrupted/lost files.

Step 1: Press Win R, enter ms-settings:about, and click OK.

如何修复 Windows 11 / 10 上的运行时错误 339

Step 2: Check System type in the About window. It will show a 64-bit operating system, x64-based processes in the system type 64-bit system. If it is a 32-bit system, the system type will appear as 32-bit operating system, x32-based processor.

如何修复 Windows 11 / 10 上的运行时错误 339

NOTE: Screenshots are based on 64-bit machines

Step 3: Now download from Microsoft website here as per your system type Microsoft Visual Basic 6.0 Common Controls.

如何修复 Windows 11 / 10 上的运行时错误 339

Step 4: Now unzip it using WinRar or &-zip. Open the unzipped folder and find the file mscomctl.ocx inside.

如何修复 Windows 11 / 10 上的运行时错误 339

Step 5: Now copy the mscomctl.ocx file from the extracted folder and paste it in the following path as per your system type.

如何修复 Windows 11 / 10 上的运行时错误 339

Note: If the backup file exists in the following path, please back it up before replacing it.

对于路径中的 32 位系统副本:C:\Windows\System32
Copy after login
对于路径中的 64 位系统副本:C:\Windows\SysWOW64
Copy after login

如何修复 Windows 11 / 10 上的运行时错误 339

##Step 6: Now press

Win R, type cmd and click OK .

如何修复 Windows 11 / 10 上的运行时错误 339

Step 7: Type the following command according to your system type to register the ocx file you copied now.

For 32-bit systems:

cd C:\Windows\System32regsrv32 mscomctl.ocx
Copy after login

For 64-bit systems:

C:\Windows\SysWOW64regsvr32 mscomctl.ocx
Copy after login

如何修复 Windows 11 / 10 上的运行时错误 339##Step 8: The registration success pop-up window will appear. Click

OK

. Step 9: Now try to reinstall the application that is causing the error and recheck if the issue is resolved.

The above is the detailed content of How to fix runtime error 339 on Windows 11/10. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yundongfang.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!