“加载 DLL 时出错"在VB6中编译DLL时

编程入门 行业动态 更新时间:2024-10-27 06:29:32
本文介绍了“加载 DLL 时出错"在VB6中编译DLL时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我有一个使用引用的 Visual Basic 6.dll 项目",当单击文件->制作 dll"选项时,它应该生成一个 dll 文件.好吧,当单击文件->制作 dll"时,出现错误加载 DLL 时出错".

I have a visual basic 6 ".dll project" that uses references and when "File->Make dll" option is clicked, it should generate a dll file. Well, when clicked "File->Make dll", I get error "Error in loading DLL".

如何查看缺少哪些参考文献?

How can I see which references are missing?

推荐答案

我已经看到当引用的组件在不兼容的情况下重新编译但之前版本的 dll 之前未注册时会发生此错误,因此类型库的注册表项不会被删除,这些虚假的注册表项指向新的 dll.

I've seen this error occur when referenced components are recompiled with no compatibility but the previous versions of the dlls are not unregistered beforehand, so the registry keys for the typelibs are not removed and these bogus registry entries point to the new dlls.

通常我使用内部注册表清理工具处理这些问题,该工具可以根据 typelib 磁盘位置删除 typelibs/clsid/interfaces 注册.您可以尝试将引用项目的物理文件移动到磁盘上的不同位置并 regsvr32 在那里,手动从项目文件中删除引用,重新启动 IDE 并重新打开项目,最后添加引用并检查 dll 位置在添加引用对话框中指向新文件位置.

Usually I deal with these with an internal registry cleaner tool that can remove typelibs/clsid/interfaces registration based on typelib disk location. You can try moving physical files of the referenced projets to different location on disk and regsvr32 them there, manually remove references from the project file, restart the IDE and reopen project, finally add references and check that dll location in add reference dialog points to the new files location.

这篇关于“加载 DLL 时出错"在VB6中编译DLL时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-28 01:14:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1164471.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加载   DLL   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!