Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with DLL function
Message
From
13/10/2011 03:39:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Problem with DLL function
Miscellaneous
Thread ID:
01526248
Message ID:
01526248
Views:
103
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.
Next
Reply
Map
View

Click here to load this message in the networking platform