Today when I run an old tool on my x64 win7, following error message is displayed:
Component ‘COMDLG32.OCX’ or one of its dependencies is not correctly registered: a file is missing or invalid.
Here is how to resolve comdlg32.ocx missing error.
- Download comdlg32.zip and extract comdlg32.ocx from zip file
- Move comdlg32.ocx to c:\Windows\system32 folder. For 64bit Vista/Win7, move comdlg32.ocx to c:\Windows\SysWOW64
- Open a command line window and run following command:
regsvr32 c:\Windows\system32\comdlg32.ocx
Note: a) On 64bit Vista/Win7, run this command instead:
regsvr32 c:\Windows\SysWOW64\comdlg32.ocx
b) For Vista/Win7 with UAC turn on, the above command needs to be run from elevated command prompt.
- Once comdlg32 is registered successfully, following message will prompt, DllRegisterServer in C:\WINDOWS\System32\comdlg32.ocx succeeded.
- Now launch the application again you should not see file missing error.
Update: Important note if you use WIN7: when registering comdlg32.ocx, it must be done as administrator, or regsvr32.exe will fail with error 0x8002801c.
To do this as administrator, Go to ‘All Programs -> Accessories -> Command Prompt’, right click on ‘Command Prompt’ icon, and click on ‘Run as administrator’ to start a command prompt, then run the regsvr32 command
THANKS ALOT!!!!
thanks a lot
Pingback: Carnolio » regsvr32 *.ocx on x64
Thank you:) Fixed it.
great fix thanks
Thanks – This was the only site I found that actually addressed the solution for a 64 bit system. Very grateful indeed!
Thank you! This really helps.
Thanks!
Glad I found this site. It worked nicely. Thank you very much Emma!!!
Thank you so much!!!
I found your solution and tried today. It worked! Thanks a lot.
I upgraded from Windows 7 Home to Windows 7 professional 64. I followed the instructions you posted for 64 bit. A couple of “home made utilities” that worked under the old system now work again with the upgraded system.
Important factors were 1) Copy comdlg32.ocx into directory appropriate to your system (as described here) and 2) register with Dos command (as system administrator) as described here
Again, thank you very much for making these solutions known!
Thanks, saved me one day
Bang on Target .. Many thanks
–saurabh
Thank you very much!
Will this work for 32 bit Win 7 OS as well? We are in the same boat – an old app holding legally required tax data
Pingback: [Patch]SIG & MD5 protection remover - Page 22
thank you very much for your help that makes me soluve my problem.
Found this easily with Google and it worked perfectly. Thank you very much.
Oh. My Computer Does Not Work!
Sorry -_-
Windows didn’t have a solution that worked. This site did. THANK YOU!
Agree with all the above, I went through a ton of google supplied answers and this one finally worked. Thanks
Clear, easy and simple. Thank you!
Well it said … Failed to Register I’m on a 32 vista =)
It sais that there are dependent .DLL files are missing. Fruther instructions told me to use ‘the files’ from an older OS in my system. I dont have an avaible PC with an older OS.
However when I typed it in CMD without running it as admin. It worked, almost.
THANKS!!!!!
Thanks so much. It works.
Thanks banget atas infonya, sekarang aku udah bisa setting file athan di laptop.
Thank you so much,Very clear instruction!
Fico muito agradecido pelo post, resolveu o meu problema
Pessoas assim que fazem a diferença, parabéns
:PP:P:P
Thanks so much. It works.
Thanks,also works with comctl32.ocx error on Win 7 64
Heyyy,Thank you very very much!…this was extremely helpful…the only page where I found a proper solution!
Hmm. I tried this on a Win7 laptop i got over the summer to get some old tools to run, and got the error:
regsvar32 is not recognized as an internal or external command.
@steam, regsvar32 => regsvr32
Terima kasih bgt untuk solusinya sekarang saya jadi bisa buka lagi aplikasi banknya..
Sekali lagi terima kasihh..
Thank you so much

works in my laptop
thanks thanks thanks
doestn’t work for me with VBA
i have followed the below steps,
1. Open a new userform in VBA
2. Drag the control and placed on userform
3. got message as “class not registered”
Please help
thx u very much for all info n help
Perfect! thanks for the help! You have helped tremendously!
Thank you so much! professional!
toooo thanks.!!