c#调用delphi开发的dll 函数问题,请熟悉的朋友帮忙!
delphi里面的函数:
extern "C" __declspec(dllexport) BOOL __stdcall xfReadCard(int port,char * kh,char * fg,char * je);
如何定义C#的倒入函数?
我尝试如下,但是不行:
[DllImport("xfic.dll",EntryPoint="_xfReadCard@16",CallingConvention=CallingConvention.StdCall,CharSet=CharSet.Ansi) ]
public static extern bool _xfreadCard(int pPort, byte[] pICNO, byte[] pString, byte[] pMoney);
谢了!