VC ++项目中的DLL调用问题 [英] DLL calling Issue from VC++ Project

查看:118
本文介绍了VC ++项目中的DLL调用问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的application.exe所在的目录中有一个bin文件夹.我的程序使用具有相同公开名称的两个具有不同公开功能的dll.我将只能在我的bin目录中放入一个dll.重命名其他DLL不起作用.关于这种情况的任何建议吗?

I am having a bin folder in where my application.exe resides. My program uses, two dll with same name that has different exposed functions. I will be able to put only one dll in my bin directory. Renaming other DLL is not working. Any Suggestion on this scenario ?

推荐答案

在构建项目时,您还需要重命名其关联的.lib文件.如果这些是您自己的.dll,则最好使用完全不同的名称重建其中一个.或者,您可以使用 LoadLibrary() [ ^ ]函数来加载其中之一并动态处理所有函数调用.
You also need to rename its associated .lib file when you build your project. If these are your own .dlls, then it would be better to rebuild one of them with a completely different name. Alternatively you could use the LoadLibrary()[^] function to load one of them and handle all function calls dynamically.


感谢您的响应.我们得出结论,对于一个使用静态库,而对其他使用dll,则没有冲突.
Thanks for the response. We concluded to use, static library for one and dll for the other, that had no conflict.


这篇关于VC ++项目中的DLL调用问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆