COMCTL32.OCX error in Windows 7


I'm having a problem to run one of my software after installing Windows 7. Error message - "Component 'COMCTL32.OCX' or one of its dependencies not correctly registered: a file is missing or invalid"

May I know where to get this file (COMCTL32.OCX) and what should I do next? ... too many in google and not sure which one. Those files are compatible with Windows 7?  



Question Info

Last updated May 14, 2019 Views 171,719 Applies to:



o    On which particular software are you facing this problem?

o    Do you have Visual Basic installed?



I’d not recommend downloading from third party website as there are many potential threats associated with it.


Here are two steps you may try.


Step 1: Re-register the component.


Verify if comctl32.ocx is in C:\windows\system32 folder. If you, you may try re-registering the file.


1.     Go to start and type cmd.

2.     Right-Click on cmd and select “Run as Administrator”.

3.     Type regsvr32 comctl32.ocx and press Enter.


If successful you should get a popup saying "DllregisterServer in
comscl32.ocx succeeded"


Explanation of Regsvr32 usage and error messages


Step 2: Un-install and reinstall the software.


Re-installing helps in installing the missing component. Do this as a last resort.

For your reference:


Uninstall or change a program


Shinmila H - Microsoft Support

Visit our Microsoft Answers Feedback Forum and let us know what you think.

13 people were helped by this reply


Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.