General information
Category:
Windows API functions
>Peter,
>
>Thanks a lot. Here is what I found in the header file.
>
>typedef struct tagDPIDate
>{
> short jour;
> short mois;
> short annee;
>} DPIDate, FAR * LPDPIDate;
Each short is a 2-byte integer. So, you need to pass a string of 6 bytes. For the conversions from VFP numerical type to short 2-byte string:
lcJour = chr(lnJour % 256) + chr(int(lnJour / 256))
lcMois = chr(lnMois % 256) + chr(int(lnMois / 256))
lcAnnee = chr(lnAnnee % 256) + chr(int(lnAnnee / 256))
And pass the lcJour+lcMois+lcAnnee to the DLL function.
Probably you already knew how to do this, but...
Vlad
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only