accessing methods of a dll [closed]

2019-09-24 07:20发布

how to access the methods of a dll in .net using c#

标签: c# .net dll
3条回答
等我变得足够好
2楼-- · 2019-09-24 07:48

Include the dll in your references folder in your project.

Here is a good article on doing that: http://msdn.microsoft.com/en-us/library/wkze6zky%28VS.80%29.aspx

查看更多
Viruses.
3楼-- · 2019-09-24 08:04

.net

  • load the Assembly using 'Assembly.Load' or adding a reference
  • use the Classes in the Assembly

unmanaged

查看更多
混吃等死
4楼-- · 2019-09-24 08:05

That depends on what kind of Dll you are talking about. If you are talking about .Net Dll's, that is, .Net assemblies without an entry point, then Abe's answer applies. If you are talking about unmanaged/native DLL's written in C, you should use the Dllimport attribute in defined in System.Runtime.InteropServices namespcae. This link might help you.

查看更多
登录 后发表回答