Commun error message with Mscomctl.ocx
If you have the error message:
"Component 'MSCOMCTL.OCX' or one of its dependencies not correctly registered: a file is missing or invalid."
Solution:
MSCOMCTL.OCX should be provided with the Microsoft Visual Basic 6.0 environement.
If you already install Visual basic 6 and still have the issue you can try the following:
- Download MSCOMCTL.OCX ZIP file and extract the into the folder C:\Windows\SysWOW64
- start the command prompt Start-->excecute-->cmd or if you are on windows 10 just type cmd into your start menu. Right click on that Command Prompt icon and choose to Run as administrator. Click Yes.
- When the black window opens with your command prompt, type the following:
cd c:\windows\sysWOW64
- Press Enter
- The prompt should change to: C:\Windows\SysWOW64
- Type into the same terminal window:
regsvr32 mscomctl.ocx
- Press Enter
- If you get a Window that pops up and says, "DllRegisterServer in mscomctl.ocx succeeded" then click OK and close the terminal.
- Try again to run your application.