装换为delphi格式总是报错 ( 积分: 100 )

  • 主题发起人 主题发起人 wcnmdznsq
  • 开始时间 开始时间
W

wcnmdznsq

Unregistered / Unconfirmed
GUEST, unregistred user!
int SMT_ReadCard(int ComPort, int CardNumLength,unsigned char *CardNum,unsigned char *CardNum1,unsigned char *Password,unsigned char *CardID,unsigned char *Name,int &Money)

我是这样转换的
//function SMT_ReadCard(ComPort :Integer; CardNumLength :Integer; CardNum: array of Byte; CardNum1 :array of Byte; Password :array of Byte;CardID :array of Byte; Name :array of Byte;Money: Integer):Integer;StdCall; External 'SmartCom411SFJ.dll'; //读取卡片基本信息
//function SMT_ReadCard(ComPort :Integer; CardNumLength :Integer; CardNum: array of Char; CardNum1 :array of Char; Password :array of char;CardID :array of char; Name :array of Char;Money: Integer):Integer;StdCall; External 'SmartCom411SFJ.dll'; //读取卡片基本信息
function SMT_ReadCard(ComPort :Integer; CardNumLength :Integer; CardNum: PChar; CardNum1 :PChar; Password :PChar;CardID :PChar; Name :PChar;Money: Integer):Integer;StdCall; External 'SmartCom411SFJ.dll'; //读取卡片基本信息
都不行
 
function SMT_ReadCard(ComPort :Integer; CardNumLength :Integer; CardNum: PByte; CardNum1 :PByte; Password :PByte;CardID :PByte; Name :PByte; var Money: Integer):Integer;StdCall; External 'SmartCom411SFJ.dll'; //读取卡片基本信息
 
谢谢!问题已经解决了
 
后退
顶部