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("成功");
}
}
请问这是什么问题啊?
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("成功");
}
}
请问这是什么问题啊?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货