carlosparedes
Programmer
I am trying to use a function from C++ in delphi. I keep on getting an access violation error. Could you help me.
Function in C++
VEXPORT int CALLBACK GetCard(char *macAddr,int *cardSetID,int *noFormat,char *cardNumber,int cardNumberSize,char *pin,int pinSize,int *accessType,
unsigned int *uniqueID,int*accessGroup1,int*accessGroup2,
int *accessGroup3,int *accessGroup4,int *accessGroup5,
int *accessGroup6,int *accessGroup7,int *accessGroup8,int *extendedAccess,int *passbackExempt,int *pinCmds,
char *startDate,int startDateSize,char *startTime,
int startTimeSize,char *endDate,int endDateSize,
char *endTime,int endTimeSize,unsigned int *escortID,int *inElevGroup,int *outElevGroup,int *deleted);
My conversion to delphi:
Function GetCardRecord(macAddrChar;cardSetID:integer;
noFormat:integer;cardNumberChar; cardNumberSize:integer;pinchar;
pinSize:integer;accessType:integer;uniqueID:cardinal;accessGroup1:integer;
accessGroup2:integer;accessGroup3:integer;accessGroup4:integer;accessGroup5:integer;
accessGroup6:integer;accessGroup7:integer;accessGroup8:integer;extendedAccess:integer;
passbackExempt:integer;pinCmds:integer;startDateChar; startDateSize:integer;startTimeChar;startTimeSize:integer;
endDateChar; endDateSize:integer;endTimeChar; endTimeSize:integer;escortID:Cardinal;inElevGroup:integer;
outElevGroup:integer;deleted:integer):integer
Please help me
Sandra
Function in C++
VEXPORT int CALLBACK GetCard(char *macAddr,int *cardSetID,int *noFormat,char *cardNumber,int cardNumberSize,char *pin,int pinSize,int *accessType,
unsigned int *uniqueID,int*accessGroup1,int*accessGroup2,
int *accessGroup3,int *accessGroup4,int *accessGroup5,
int *accessGroup6,int *accessGroup7,int *accessGroup8,int *extendedAccess,int *passbackExempt,int *pinCmds,
char *startDate,int startDateSize,char *startTime,
int startTimeSize,char *endDate,int endDateSize,
char *endTime,int endTimeSize,unsigned int *escortID,int *inElevGroup,int *outElevGroup,int *deleted);
My conversion to delphi:
Function GetCardRecord(macAddrChar;cardSetID:integer;
noFormat:integer;cardNumberChar; cardNumberSize:integer;pinchar;
pinSize:integer;accessType:integer;uniqueID:cardinal;accessGroup1:integer;
accessGroup2:integer;accessGroup3:integer;accessGroup4:integer;accessGroup5:integer;
accessGroup6:integer;accessGroup7:integer;accessGroup8:integer;extendedAccess:integer;
passbackExempt:integer;pinCmds:integer;startDateChar; startDateSize:integer;startTimeChar;startTimeSize:integer;
endDateChar; endDateSize:integer;endTimeChar; endTimeSize:integer;escortID:Cardinal;inElevGroup:integer;
outElevGroup:integer;deleted:integer):integer
Please help me
Sandra