delphi编写的dll函数如下:
function SendDatafun(comport:integer;bps:longint;address:integer;sendData:pchar;color:integer;showMode,showSpeed,showTime:integer):integer;
StdCall external '../dlltpzp.DLL';
在C#中如何调用,我是用下边的方法,总是提示“尝试读取或写入受保护的内存。这通常指示其他内存已损坏。”
[DllImport("dlltpzp.dll", CharSet = CharSet.Ansi)]
        private static extern int SendDatafun(int comport, long bps, int address, StringBuilder sendData, int color, int showMode, int showspeed, int showtime);
在线等,各位大神帮帮忙啊