如何指定一个二进制文件来使用某些特定的dll文件?

发布于 2025-01-15 06:14:59 字数 387 浏览 2 评论 0原文

我们正在开发音频插件,它们是动态库。这使得使用 Qt 等第三方库变得非常困难,因为我们的产品 DLL 会在主机 DAW 程序的可执行目录中搜索 Qt 的 DLL,并且不可能将我们的依赖 DLL 安装到该位置(你不知道哪个)将使用主机,主机甚至可能晚于插件安装)。

我对这个问题进行了一些简短的搜索,几个答案将我引向了一种名为“并行组装”的 Microsoft 技术,并且我几乎被有关该技术的大量文档和概念所吸引。所以我的问题是:

  • 如何让我的 DLL 加载位于 path_to_plugin/MyPlugin_dependents/xxx.dll 的几个特定依赖 DLL?
  • 或者是否有任何并排组装的示例可以简单地执行此操作并且比官方示例简单得多?

We are developing audio plugins which are dynamic libraries. This made it very hard to use 3rd-party libraries such as Qt, as our product DLL would search for Qt's DLL on host DAW program's executable directory, and it is impossible to install our dependent DLLs to that position (you don't know which host will be used, and host may even be installed later than the plugin).

I've made some brief search on this problem, the few answers direct me to a Microsoft technology called side-by-side assembly, and I'm almost drawn in the huge documentation and concepts on that. So my question is:

  • How to make my DLL to load several specific dependent DLLs located at path_to_plugin/MyPlugin_dependents/xxx.dll?
  • Or is there any examples to side-by-side assembly that simply do this and is much simpler than the official example?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文