重新使用dll [英] Re-using dll's

查看:70
本文介绍了重新使用dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果这个问题已经得到解答,请原谅我。


我为现有程序编写和编译了几个dll。这些是用Microsoft Visual C#2008 Express Edition编写的。我正在开始一个新项目,并希望在新项目中重新使用这些dll中的一些,而无需再次编写它们。我确定它可以完成,但我无法使用dll中的功能。我在项目资源管理器中添加了对dll'的引用,甚至将它们添加到using子句中。任何帮助表示赞赏。

Please forgive me if this question has already been answered.

I have several dll''s written and compiled for an existing program. These were written in Microsoft Visual C# 2008 Express Edition. I am beggining a new project and would like to re-use some of these dll''s in the new project without having to write them all over again. I''m sure it can done but I have not been able to use the functionality in the dll''s. I have added references to the dll''s in the project explorer and even added them to the using clause. any help is appreciated.

推荐答案

这些DLL是用C ++编写的?是吗?

您是否正在尝试在CLR支持的C ++项目中使用它们?还是一个C#项目?
These DLLs are in C++? Yes?
And you are trying yo use them in a C++ project iwth CLR support? Or a C# project?



这些DLL是用C ++编写的?是吗?

您是否正在尝试在CLR支持的C ++项目中使用它们?还是一个C#项目?
These DLLs are in C++? Yes?
And you are trying yo use them in a C++ project iwth CLR support? Or a C# project?



这些dll是用C#编写的。我想在其他C#项目中重用它们。

the dll''s are written in C#. I want to re-use them in other C# projects.



dll是用C#编写的。我想在其他C#项目中重用它们。
the dll''s are written in C#. I want to re-use them in other C# projects.



当你说你不能使用这个功能时,你的意思是你得到编译错误,或者DLL中的类没有出现在intellisense中?您是否尝试在添加引用后重新编译项目?

When you say that you cannot use the functionality, do you mean that you get compilation errors, or that the classes from the DLL''s does not appear in intellisense? Have you tried to re-compile your project after adding the reference?


这篇关于重新使用dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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