delphi string 参数问题
delphi写的dll文件函数如下:
function mfi_authen_syscard(sector:byte;key:string;sys_no:dword; sj_key:string):boolean;stdcall;
PB中声明如下:
Function Boolean mfi_authen_syscard(Long sector,string Key,ULong sys_no,string sj_key) Library "test.dll"
调用函数时如下:
lb_return = mfi_authen_syscard(3,"12345678",12345678,"11111111")
异常信息如下:
"0x0699c1aa" 指令引用的 "0x0000009c" 内存。该内存不能为 "written"。
新手大家帮帮忙!