B
bjluoagzn
Unregistered / Unconfirmed
GUEST, unregistred user!
串口通讯的问题?在线等!在线等!在线等!在线等!在线等!在线等!在线等!在线等!在线等!在线等!在线等!急!急!急!急!急!急!急!急!急!急!急!急! ( 积分: 100 )<br />Dll中申明函数原型:
C语言申明
int WINAPI rfReader_M1_read(long ReaderHandle,unsigned short icdev, unsigned char KeyA_B, unsigned char block, unsigned char * key, unsigned char *pData);
VB调用如下:
Dim TF As Long '返回标志
Dim bySourByte(256) As Byte
Dim szDestString(256) As Byte
Dim strbuf As String * 256
Dim strbuf1 As String * 256
strbuf1 ="FFFFFFFFFFFF"
Call StringToByte(strbuf1, 12, szDestString(0))
TF = rfReader_M1_read(RHandle, 0, 0, 4, szDestString(0), bySourByte(0))
我在Delphi申明如下:
function rfReader_M1_read(ReaderHandle:LongInt;icdev:Word;KeyA_B:Byte;block:Byte;key,pSnrchar):Integer;stdcall;external 'MifareOne.dll';
怎么样把它翻译成Delphi语言,谢谢!
C语言申明
int WINAPI rfReader_M1_read(long ReaderHandle,unsigned short icdev, unsigned char KeyA_B, unsigned char block, unsigned char * key, unsigned char *pData);
VB调用如下:
Dim TF As Long '返回标志
Dim bySourByte(256) As Byte
Dim szDestString(256) As Byte
Dim strbuf As String * 256
Dim strbuf1 As String * 256
strbuf1 ="FFFFFFFFFFFF"
Call StringToByte(strbuf1, 12, szDestString(0))
TF = rfReader_M1_read(RHandle, 0, 0, 4, szDestString(0), bySourByte(0))
我在Delphi申明如下:
function rfReader_M1_read(ReaderHandle:LongInt;icdev:Word;KeyA_B:Byte;block:Byte;key,pSnrchar):Integer;stdcall;external 'MifareOne.dll';
怎么样把它翻译成Delphi语言,谢谢!