在单个C#项目中可以使用两个具有相同名称和不同版本的C ++ DLL吗? [英] two C++ DLL of same name and different version is possible to use in single C# project?

查看:607
本文介绍了在单个C#项目中可以使用两个具有相同名称和不同版本的C ++ DLL吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个具有相同名称和不同版本的dll.
我想在我的单个项目中同时使用这两个dll.
因为每个版本都有不同的方法,我想使用两个dll中的方法.

欢迎任何想法或建议.

I have two dll with same name and different version.
i want to use both these dll in my single projects.
because each version had different methods and i want to use methods from both dll.

any idea or suggestion are welcome.

推荐答案

您可以尝试以编程方式加载和卸载它们(LoadLibrary-FreeLibrary),但我不知道这会带来什么奇怪和奇妙的错误.介绍...
You could try loading and unloading them programmatically (LoadLibrary - FreeLibrary), but I have no idea what strange and wonderful bugs this will introduce...


不,我想.
但是,将两个dll放在两个不同的位置并尝试加载它们.
No, I guess.
But place two dll in two different location & try to load them.


这篇关于在单个C#项目中可以使用两个具有相同名称和不同版本的C ++ DLL吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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