The problem I have is accessing the DLL's which use reference BYTE parameters (BYTE @). The original code that I have is in VB, and below is my conversion to VFP. When I call the MTIPADSendAmount() function, I get a Program Error - "Too many arguments."
*!* Dim ResultCode As Long
*!* Dim OperationStatus As Byte
*!* Dim Amount As String
*!*
*!* Amount = "20.15"
*!* ResultCode = MTIPADSendAmount(Amount, OperationStatus)
DECLARE LONG MTIPADOpen IN "MTIPADLIB.dll"
DECLARE LONG MTIPADIsLibReady IN "MTIPADLIB.dll"
DECLARE LONG MTIPADSendAmount IN "MTIPADLIB.dll" ;
STRING Amount , BYTE @OpStatus
ResultCode = MTIPADOpen()
ResultCode = MTIPADIsLibReady()
lcBuff = REPLICATE(CHR(0),16)
Amount = "20.14"
ResultCode = MTIPadSendAmount(Amount,@lcBuff)
? ResultCode
Is there a better way to call the DECLARE, or is anyone using a different way to access the MagTek IPAD other than DLL?
Any info or suggestions would be appreciated!
thanks!
Carsten
*!* Dim ResultCode As Long
*!* Dim OperationStatus As Byte
*!* Dim Amount As String
*!*
*!* Amount = "20.15"
*!* ResultCode = MTIPADSendAmount(Amount, OperationStatus)
DECLARE LONG MTIPADOpen IN "MTIPADLIB.dll"
DECLARE LONG MTIPADIsLibReady IN "MTIPADLIB.dll"
DECLARE LONG MTIPADSendAmount IN "MTIPADLIB.dll" ;
STRING Amount , BYTE @OpStatus
ResultCode = MTIPADOpen()
ResultCode = MTIPADIsLibReady()
lcBuff = REPLICATE(CHR(0),16)
Amount = "20.14"
ResultCode = MTIPadSendAmount(Amount,@lcBuff)
? ResultCode
Is there a better way to call the DECLARE, or is anyone using a different way to access the MagTek IPAD other than DLL?
Any info or suggestions would be appreciated!
thanks!
Carsten