安装使用 dll 的自定义组件时出现问题

发布于 2024-09-30 05:13:36 字数 182 浏览 0 评论 0原文

我创建了一个 TCustomComponent,但在安装它时遇到问题。错误消息“???.dll 未找到,无法安装包”。但是如果你把它复制到系统目录就可以了。

我的问题是,如何让我的组件像普通组件一样安装,而不将 .dll 复制到系统目录或库中。

我尝试添加搜索路径和选项>环境变量,但仍然不起作用。有什么想法吗?

I created a TCustomComponent and i am having problem on installing it. Error Message "????.dll not found and cannot install package". but it work if you copy it to the system directory.

My question is, how to make my component installed like normal component without copying the .dll to the system directory or into the library.

i tried Adding the SearchPath and OPtions>Environment Variables and still not working. any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

傲世九天 2024-10-07 05:13:36

搜索路径和选项环境变量用于编译器,而不是 IDE 的加载。 Delphi IDE 加载组件包并将它们托管在自己的内存空间中,因此它遵循标准的 Windows DLL 加载规则。您需要将 DLL 放在与 BDS.exe 相同的文件夹中,或者放在系统搜索路径上的某个位置。

The search path and options environment variables are for the compiler, not the IDE's loading. The Delphi IDE loads the component packages and hosts them in its own memory space, so it follows the standard Windows rules on DLL loading. You'll need to either put your DLL in the same folder as BDS.exe, or somewhere on the system search path.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文