regsvr32 失败,GetLastError 返回 0x0000007e
我正在尝试注册一个delphi制作的库(带有依赖项)。第一次尝试时,regsvr32 失败,说找不到指定的模块,我找到了答案并将所有依赖项复制到我的 dll 所在的同一目录中。
但现在,regsvr32 失败并显示消息 GetLastError returned 0x0000007e.
,并且我无法在任何地方找到此特定错误代码的含义。我发现的所有提及都与特定程序或库以及如何因特定原因解决它有关。示例:
- 0x0000007e 注册 Olemsg32.dll 或 Cdo.dll 文件时出错(位于支持.microsoft.com)
- RegSvr32 错误:“LoadLibrary(“safileup.dll”)失败。 GetLastError 返回 0x0000007e (位于 support.softartisans.com)
我用于注册的命令是:
regsvr32 C:\path\to\library.dll
知道导致此错误的原因以及如何解决它吗?
更新:似乎错误代码对应于ERROR_MOD_NOT_FOUND,它意味着(以一种非常晦涩的方式)“找不到指定的模块。”...我以前遇到过同样的错误。
我将正在运行的安装的整个文件夹复制到测试机器中(而不是尝试进行新的安装),并且我能够注册该库。我现在必须确定哪一个是我需要的文件。
I'm trying to register a delphi-made library (with dependencies). On first try, regsvr32 failed saying it could not find the specified module, for which I found answer and copied all dependencies into the same directory my dll resides.
But now, regsvr32 fails with the message GetLastError returned 0x0000007e.
, and I could not find anywhere what this specific error code means. All mentions I found relate to a specific program or library and how to solve it for that specific reason. Examples:
- 0x0000007e Error When Registering Olemsg32.dll or Cdo.dll Files (at support.microsoft.com)
- RegSvr32 Error: 'LoadLibrary ("safileup.dll") failed. GetLastError returns 0x0000007e (at support.softartisans.com)
The command I use to register is:
regsvr32 C:\path\to\library.dll
Any idea of what causes this error and how to solve it?
UPDATE: Seems that the error code corresponded to ERROR_MOD_NOT_FOUND, and it meant (in a really obscure way) "The specified module could not be found."... same error I had before.
I copied the entire folder of a running instalation into the test machine (instead of trying to make a new instalation) and I was able to register the library. I'll now have to identify which one was the file I was needing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我只能找到该错误代码的三个定义:
您确定该 DLL 是需要使用 RegSvr32 注册的 ActiveX/COM 库吗?
I can only find three definitions for that error code:
Are you sure the DLL is an ActiveX/COM library that needs to be registered with RegSvr32?