c#调用delphi dll出现的问题
在写了方法之后 [DllImport("CDGK_HOS.dll", CharSet = CharSet.Ansi, SetLastError = true,CallingConvention = CallingConvention.StdCall, BestFitMapping = true)]
public static extern string GETSBJGLB();———这个能用
//public static extern string CHECKCON();
public static extern string CHECKCON();
其他的都不能用·
而且报错都是这样
未能从程序集“WindowsApplication2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”中加载类型“WindowsApplication2.Form1”,因为方法“CHECKCON”没有实现(没有 RVA)。
麻烦请哪位大虾解释一下·
小弟感激不尽
在写了方法之后 [DllImport("CDGK_HOS.dll", CharSet = CharSet.Ansi, SetLastError = true,CallingConvention = CallingConvention.StdCall, BestFitMapping = true)]
public static extern string GETSBJGLB();———这个能用
//public static extern string CHECKCON();
public static extern string CHECKCON();
其他的都不能用·
而且报错都是这样
未能从程序集“WindowsApplication2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”中加载类型“WindowsApplication2.Form1”,因为方法“CHECKCON”没有实现(没有 RVA)。
麻烦请哪位大虾解释一下·
小弟感激不尽
public static extern string GETSBJGLB();———这个能用 [DllImport("CDGK_HOS.dll", CharSet = CharSet.Ansi, SetLastError = true,CallingConvention = CallingConvention.StdCall, BestFitMapping = true)] //<<<<<<<<<<<insert
public static extern string CHECKCON();