how to access the methods of a dll in .net using c#
+2
A:
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
Abe Miessler
2010-10-19 18:54:54
A:
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.
Armen Tsirunyan
2010-10-19 18:57:38
A:
.net
- load the Assembly using 'Assembly.Load' or adding a reference
- use the Classes in the Assembly
unmanaged
- Use DllImport
rerun
2010-10-19 18:59:13