H
husion
Unregistered / Unconfirmed
GUEST, unregistred user!
type d=array [0..255] of integer; abc:d;Function SetCH372(var x:string):d;stdcall;external 'CH372.dll';Function SetCH372(var x:string):d;stdcall;const mIndex : cardinal=0;var mDemoReq:d; mLength:longword;begin if(CH375ReadData(mIndex,@mDemoReq[0], @mLength))then begin result:=mDemoReq; end;end;代码: ... [red]abc:=SetCH372(x);[/red] ...当程序单步执行到abc:=SetCH372(x);时,发现abc中的值不是单片机发过来的值.比如本来要收到的单片机值是(0,1,2,3)现在变成(19246092752,2,1946092872,0),为什么?谢谢..