如何指定一个二进制文件来使用某些特定的dll文件?
我们正在开发音频插件,它们是动态库。这使得使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论