当我尝试在Windows 7系统上启动VB6应用程序时,我一直收到错误消息
Component 'crystl32.ocx' or one of its dependencies not correctly registered: a file is missing or invalid
我尝试了很多选项来注册,例如先将crpe32.dll
和implode.dll
复制到System32
和syswow64
文件夹中,然后使用regsvr32.exe
进行注册但这给了我错误信息
The module 'crystl32.ocx' failed to load. Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files. THe specified module could not be found.
我可以浏览C:\Windows\System32
和SysWow64
并查看其中的文件。
最近我安装了Oracle 11g
,安装了Oracle 9g
,与Environment variables
一起玩了,导致问题的原因是什么?在此之前,相同的应用程序工作正常,没有任何错误消息。
答案 0 :(得分:1)
尝试这个:确保在C:\ WINDOWS \ SYSWOW64文件夹中找到这些文件:
crystl32.ocx, crviewer.dll, implode.dll, CRPE32.DLL
然后使用Regsvr32.exe WITHIN C:\ WINDOWS \ SYSWOW64文件夹而不是使用此命令在C:\ WINDOWS \ SYSTEM32文件夹中找到的文件夹:
regsvr32 c:\ Windows \ SysWow64 \ crystl32.ocx
答案 1 :(得分:0)
如果这适用于任何其他计算机,请查看是否可以使用Process Explorer或类似工具来查看工作时加载的依赖项。
答案 2 :(得分:0)
如果您使用外部OCX
外部控件中的任何一个,则需要移动所有关联的文件。对我和crystl32
来说,system32
还有很多。我怎么找到他们的?
system32
More
ocx
与其他所需文件之间的连接* *对我来说,Description
或Company
取决于我要注册的OCX。