TPlu=record //PLU信息结构
Name: PChar; //品名,36个字符
LFCode: Longint; //码,1-999999,唯一识别
end;
PPLU=^TPLU;
TPLUCluster=Array[0..3]of TPLU; //一个PLU簇包含4条PLU
PPLUCluster=^TPLUCluster;
THotkeyTable=Array[0..83]of LongInt;Function PBusTransferPLUCluster(PPC:PPLUCluster //PLU簇
):Integer;far; external 'PbusDrv.dll';上面是DELPHI的调用接口的代码.在C#中应该怎么实现?
Name: PChar; //品名,36个字符
LFCode: Longint; //码,1-999999,唯一识别
end;
PPLU=^TPLU;
TPLUCluster=Array[0..3]of TPLU; //一个PLU簇包含4条PLU
PPLUCluster=^TPLUCluster;
THotkeyTable=Array[0..83]of LongInt;Function PBusTransferPLUCluster(PPC:PPLUCluster //PLU簇
):Integer;far; external 'PbusDrv.dll';上面是DELPHI的调用接口的代码.在C#中应该怎么实现?
解决方案 »
- contextMenuStrip控件如何动态为子项添加一个子项
- 帮忙下载csdn的一个资源,回答的大侠实际得分为100+100,看内容就知道了
- 急求:类中异常:属性“QuotePrefix”可以接受的值为“[”或“"”。
- 能不能将有规则的文本文件中的数据制作成一个像记录集一样的东西,让DataView之类的控件直接显示出来。
- 如何用C#生成透明的GIF图片?
- gridview问题
- C#委托事件相关问题:如果判断子类是否处理了继承自父类的某个事件?
- 请教一个无连接条件的签到、签退问题。谢谢
- 关于dropdownlist的显示问题!(答对就给分)
- 怎样实现textBox与dataGrid的动态连接??
- 如何控制datagridview中从数据库读回来的内容的排列顺序
- 如何用cmd 正常关闭程序
[DllImport("Iphlpapi.dll")]
private static extern int SendARP(Int32 dest,Int32 host,ref Int64 mac,ref Int32 length); 至于Delphi的Record直接转成Struct类型就OK了呀
public struct TPlu
{
public string Name;
public int LFCode;
}2、函数映射:[DllImport("User32.Dll")]
public static extern int PBusTransferPLUCluster([MarshalAs(UnmanagedType.LPArray, SizeConst=3)]TPlu[] PPC);