C#调用Delphi的DLL时报"外部组件发生异常。"
Delphi的DLL中的函数为:function colad(a:integer;p_coladlist:Tlist):boolean;
调用的方法如下:
public class myclass
{
[DllImport(@"E:\telMonitor\bin\ssbdll.dll")]
public static extern int addnum(int c, int d);//在DELPHI下编写;
[DllImport(@"C:\Documents and Settings\wangyougui.JITIAN\桌面\testDelphiDLL\testDelphiDLL\bin\ssbdll.dll")]
public static extern bool colad(int a, BitArray p_coladlist);
}
protected void Button2_Click(object sender, EventArgs e)
{
BitArray list=new BitArray(10);
bool flag=myclass.colad(10,list);
if(flag)
{
Response.Write("成功");
}
}
请问这是什么问题啊? --------------------编程问答-------------------- 帮顶下
补充:.NET技术 , ASP.NET