>I have a problem with calling function from DLL. Function calling description in manual is
>
>long sdReadDocumentData(SD_DOCUMENT_DATA* data)
>where "SD_DOCUMENT_DATA* data" is adress of SD_DOCUMENT_DATA structure
>
>Structure definition (in C+) is
>
>typedef struct groupSD_DOCUMENT_DATA
>{
>char stateIssuing[50];
>long stateIssuingSize;
>char competentAuthority[50];
>long competentAuthoritySize;
>char authorityIssuing[50];
>long authorityIssuingSize;
>char unambiguousNumber[30];
>long unambiguousNumberSize;
>char issuingDate[16];
>long issuingDateSize;
>char expiryDate[16];
>long expiryDateSize;
>char serialNumber[20];
>long serialNumberSize;
>} SD_DOCUMENT_DATA;
>
>I tried with
>
>cBuffer = SPACE(232)
>Answer = sdReadDocumentData(@cBuffer)
>
>and get error.
>
>When am I wrong? What shoul'd I put as a parameter of that function? How can I retrieve an adress of structure in smart card?
>
>Thanks in advance.
Try:
cBuffer = SPACE(50) +;
BINTOC(50, "4RS") +;
SPACE(50) +;
BINTOC(50, "4RS") +;
SPACE(50) +;
BINTOC(50, "4RS") +;
SPACE(30) +;
BINTOC(30, "4RS") +;
SPACE(16) +;
BINTOC(16, "4RS") +;
SPACE(16) +;
BINTOC(16, "4RS") +;
SPACE(20) +;
BINTOC(20, "4RS")
Answer = sdReadDocumentData(@cBuffer)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.