PROBLEM
- Run-time error '339': Component 'MSCOMSTL.OCX' or one of its dependencies is not correctly registered: a file is missing or invalid.
- Run-time error '339': Component 'COMDLG32.OCX' or one of its dependencies is not correctly registered: a file is missing or invalid.
- Program Error Intercepted: An unexpected component 'comdlg32.ocx' or one of its dependencies not correctly registered: a file is missing or invalid.
SOLUTION
- Click the Windows Logo/Orb and type CMD but don't hit enter. The Command Prompt will show in the list of Apps/Programs. Right click and select "Run as Administrator". This will open an elevated command prompt.
- An alternate method for an elevated command prompt in Windows 10 is right-click the Windows Logo and select "Command Prompt (Admin)”
- Type in the following depending on which component is missing:
- For MSCOMSTL.OCX: %windir%\syswow64\regsvr32 mscomctl.ocx
- For COMDLG32.OCX: %windir%\syswow64\regsvr32 comdlg32.ocx
- Note: For Windows 32bit systems, remove “%windir%\syswow64\”
- Press enter. You should get a message that says "DllRegisterServer in [filename].ocx succeeded."
If the error persists, run Gorilla as an Administrator one time. Right-click on the Gorilla icon and select Run as Administrator. If this works without errors or any problems, you can set Gorilla to always run this way. Right-click on the Gorilla icon, select Properties. On the properties window, click the Compatibility tab and then check "Run this program as an administrator".
