日期:2014-05-18 浏览次数:21373 次
namespace test.md5
{
class MD5
{
//........
}
}
------解决方案--------------------
[DllImport("动态库名称", EntryPoint = "函数名称", CallingConvention = CallingConvention.Cdecl)]
public static extern int 你自己定义的函数名(参数,参数要和dll中的一致)
还要加个这样的using:
using System.Runtime.InteropServices;