不行.这个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;
    }可是不行.请教高手.