K
kuai2000
Unregistered / Unconfirmed
GUEST, unregistred user!
用VC调用则没有问题,VC的 DLL声明如下:
bool WtSys_GetData(int VehicleID ,int TransNum ,long GrossWeight,int AxisCount, double Speed,double Acceleration, int Direction)
其中,除VehicleID 外,都是实参
DELPHI的调用如下:
function WtSys_GetData(VehicleID : Integer ; var TransNum:Integer ;var GrossWeight:LongInt ;var AxisCount : Integer ;var SpeedReal ; var Acceleration:Real ;var Direction:Integer):Boolean;stdcall;external 'WtSys_Dll.dll';
调用能够成功,也没报错,但是返回的数据明显不正确。
bool WtSys_GetData(int VehicleID ,int TransNum ,long GrossWeight,int AxisCount, double Speed,double Acceleration, int Direction)
其中,除VehicleID 外,都是实参
DELPHI的调用如下:
function WtSys_GetData(VehicleID : Integer ; var TransNum:Integer ;var GrossWeight:LongInt ;var AxisCount : Integer ;var SpeedReal ; var Acceleration:Real ;var Direction:Integer):Boolean;stdcall;external 'WtSys_Dll.dll';
调用能够成功,也没报错,但是返回的数据明显不正确。