J
jun
Unregistered / Unconfirmed
GUEST, unregistred user!
Public Declare Function MF_Request Lib "SCReader.dll" (ByVal hPort As Long, ByVal bytMode As Byte, pTagType As Byte) As Long
'//------------------------------------------------------------//
Dim bytMode As Byte
Dim atq(2) As Byte
bytMode = &H52
If 0 <> MF_Request(m_hPort, bytMode, atq(0)) Then
txtATQ.Text = ToHexString(atq(0)) &
ToHexString(atq(1))
Else
MsgBox "Request Failed!"
End If
我转为DELPHI 代码
Function MF_Request(hPort:integer
bytMode:Byte
pTagType:Byte):smallint
stdcall
far;external 'SCReader.dll' name 'MF_Request';
//******************//
var bytMode : Byte;
ATQ : array[1..2] of Byte;
begin
bytMode := $52;
If 0 <> MF_Request(m_hPort,bytMode,ATQ[1]);
showmessage(OK'+ATQ[1]+??? )
else
showmessage('Error!');
???? ATQ[1] 这个byte型 老不对 帮我改改!
'//------------------------------------------------------------//
Dim bytMode As Byte
Dim atq(2) As Byte
bytMode = &H52
If 0 <> MF_Request(m_hPort, bytMode, atq(0)) Then
txtATQ.Text = ToHexString(atq(0)) &
ToHexString(atq(1))
Else
MsgBox "Request Failed!"
End If
我转为DELPHI 代码
Function MF_Request(hPort:integer
bytMode:Byte
pTagType:Byte):smallint
stdcall
far;external 'SCReader.dll' name 'MF_Request';
//******************//
var bytMode : Byte;
ATQ : array[1..2] of Byte;
begin
bytMode := $52;
If 0 <> MF_Request(m_hPort,bytMode,ATQ[1]);
showmessage(OK'+ATQ[1]+??? )
else
showmessage('Error!');
???? ATQ[1] 这个byte型 老不对 帮我改改!