Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Interfacing C DLL with Fox.
Message
De
23/09/1998 13:27:41
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00139024
Message ID:
00139951
Vues:
46
>Hi Alexandre,
>
>>Now... This (why am I not surprised? ) crashes VFP. Why?
>
>because you return the entire structure and not a reference to it. VFP tries to treat what on the stack as if it's a pointer to a structure. All it can find is either a completely invalid value, probably either the length of the structure or the value 154 itself. It then tries to access this adress, but 154 is obviously not a valid memory adress and you should get a Mememory Protection fault or something like that.
>
>And even if you'd return the adress of the structure, all you would get is an empty string, because VFP would interpret the first CHR(0) as the terminator for the string.

You mean that I can pass only one NTS from C to Fox?

>Christof
Alexandre Nobre
Alpha Bytes Computer Corp.

Did you know that there are innocent people dying in East Timor?
It helps if you do...

I suppose you don't need glasses if you're able to read this line

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform