W
webxiou
Unregistered / Unconfirmed
GUEST, unregistred user!
dll文件提供以下函数
Public Declare Function KGetAtStatus Lib "k950c.dll"
(ByVal HDev As Long, ByVal DeviceID As Long, ByRef machinestatus As MCSTATUS) As Long
Type MCSTATUS '机器状态
nYear As Long
nMonth As Long
nDay As Long
nHour As Long
nMin As Long
nSecond As Long
nWeek As Long
RecNum As Long
End Type
'以上是vb的写法 没任何问题现在改写为delphi 如下的提示出错我不知道我什么地方写错了 还请大家赐教
----------------------------------------------------
function KGetAtStatus(HDev:longint;DeviceID:longint;machinestatus:TMCSTATUS):integer;stdcall;far;external 'K950c.dll' name 'KGetAtStatus';
TMCSTATUS = record //机器状态
nYear :LongInt;
nMonth :LongInt;
nDay :LongInt;
nHour :LongInt;
nMin :LongInt;
nSecond :LongInt;
nWeek :LongInt;
RecNum :LongInt;
end;
Public Declare Function KGetAtStatus Lib "k950c.dll"
(ByVal HDev As Long, ByVal DeviceID As Long, ByRef machinestatus As MCSTATUS) As Long
Type MCSTATUS '机器状态
nYear As Long
nMonth As Long
nDay As Long
nHour As Long
nMin As Long
nSecond As Long
nWeek As Long
RecNum As Long
End Type
'以上是vb的写法 没任何问题现在改写为delphi 如下的提示出错我不知道我什么地方写错了 还请大家赐教
----------------------------------------------------
function KGetAtStatus(HDev:longint;DeviceID:longint;machinestatus:TMCSTATUS):integer;stdcall;far;external 'K950c.dll' name 'KGetAtStatus';
TMCSTATUS = record //机器状态
nYear :LongInt;
nMonth :LongInt;
nDay :LongInt;
nHour :LongInt;
nMin :LongInt;
nSecond :LongInt;
nWeek :LongInt;
RecNum :LongInt;
end;