以下为VC的函数定义:
int32 DAQmxReadAnalogF64 (TaskHandle taskHandle, int32 numSampsPerChan, float64 timeout, bool32 fillMode, float64 readArray[], uInt32 arraySizeInSamps, int32 *sampsPerChanRead, bool32 *reserved);转换为delphi时:
function DAQmxReadAnalogF64(taskHandle:Longint;
numSampsPerChan:Longint;
timeout:Double;
fillMode:DAQmxFillMode;
readArray:PDouble;
arraySizeInSamps:Longint;
sampsPerChanRead:PLongint;
reserved:PChar):Longint; stdcall; 程序调用还是会报错,大侠们看是数据类型定义跟VC的不对吗?