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.
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.
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.
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.
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.
Step 4: Now unzip it using WinRar or &-zip. Open the unzipped folder and find the file mscomctl.ocx inside.
Step 5: Now copy the mscomctl.ocx file from the extracted folder and paste it in the following path as per your system type.
Note: If the backup file exists in the following path, please back it up before replacing it.
对于路径中的 32 位系统副本:C:\Windows\System32
对于路径中的 64 位系统副本:C:\Windows\SysWOW64
Win R, type cmd and click OK .
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
C:\Windows\SysWOW64regsvr32 mscomctl.ocx
##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!