不行.这个Dll是普通的DLL不是基于COM的.不能引用.只能用非托管的方法.谢谢
我是这样写的的:
const string strDLLPath = @"C:\DecryptDes.dll";
[DllImport(strDLLPath, EntryPoint = "Decrypt", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
public static extern string Decrypt(ref string Str, ref string Key);
public string strOut;
public string en(string str)
{
Decrypt(ref strOut,ref str);
return strOut;
}可是不行.请教高手.
我是这样写的的:
const string strDLLPath = @"C:\DecryptDes.dll";
[DllImport(strDLLPath, EntryPoint = "Decrypt", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
public static extern string Decrypt(ref string Str, ref string Key);
public string strOut;
public string en(string str)
{
Decrypt(ref strOut,ref str);
return strOut;
}可是不行.请教高手.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货