Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I use this DLL?
Message
 
À
17/07/2007 12:42:51
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01241170
Message ID:
01241221
Vues:
25
>I have the following information (this is an excerpt) about a DLL that I would like to use in my VFP application, but I can't seem to get it to work. What is the correct way to declare and use it? Ultimately I want the value returned from the GetReading() function.
>
>
>typedef struct hdate_t {
>	WORD	day;
>	WORD	month;
>	WORD	year;
>} HDATE_T;
>
>typedef struct reading_t {
>	int		reading1;
>	int		reading2;
>	int		special;
>} READING_T;
>
>KDATE_API HDATE_T	CivilToHebrew(int day, int month, int year);
>KDATE_API READING_T	GetReading(HDATE_T hd, int diaspora);
>
>Thanks!


Try:
DECLARE STRING GetReading IN ..... STRING @hd, INTEGER dspr


hd  = REPLICATE(CHR(0),3*16)  && Word has 16 bytes
lcRes = GetReading(@hd, 0)
? m1
The you should convert lcRes from string to 3 integers.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform