It is possible that a dll/ocx was not properly registered.
Try this:
regsvr32.exe COMDLG32.OCX
regsvr32.exe YourOCX.OCX
regsvr32.exe Yourdll.dll
My work, my view, and my imagination

It is possible that a dll/ocx was not properly registered.
Try this:
regsvr32.exe COMDLG32.OCX
regsvr32.exe YourOCX.OCX
regsvr32.exe Yourdll.dll