如何将DLL导入.Net应用程序 [英] How to import a DLL into a .Net applicaiton

查看:91
本文介绍了如何将DLL导入.Net应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我需要导入一个dll文件(我下载了DLL,开源而不是Dot Net DLL)。我应该可以将这个dll引用到我的dot net wondows表单应用程序中。



如何在我的windows应用程序中添加对外部DLL的引用。?



我正在使用Visual Studio 2012.



谢谢。



I need to import a dll file (I downloaded the DLL, open source but not a Dot Net DLL). I should be able to refer that dll into my dot net wondows form applicaiton.

how can I add reference to the external DLL in my windows applicaiton.?

I am using Visual Studio 2012.

Thanks.

推荐答案

Google 是您的朋友:dllimport legacy dll [ ^ ]。
Google is your friend: "dllimport legacy dll"[^].


右键单击References,然后单击Add Reference,然后浏览到.DLL文件。它将自动添加为参考。
Just right click on References and then click on Add Reference and then brows to .DLL file. It will be added automatically as Reference.


这篇关于如何将DLL导入.Net应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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