pb中调用delphi中编写的函数总是提示传递的参数类型不匹配,什么原因
pb 中调用delphi中编写的函数总是提示传递的参数类型不匹配
delphi dll 的内容如下
function Min(X, Y: Integer): Integer; export;
begin
if X < Y then Min := X else Min := Y;
end;
Exports
Min;
pb 中定义胡local function function Int Min( int b, Int a) library "Project1.dll"
按钮中调用胡
Int ls_pass,ls_return
ls_return = min(1,2)
Messagebox('',string(ls_return))
delphi和 pb中的integer类型不同吗?应该如何定义