Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help!! Calling C dll function from VFP program
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00204368
Message ID:
00204394
Vues:
18
>Hi,
>I have dllA and dllB. A C function in dllA is calling a function in dllB.
>I have a VFP program that calls the function in dllA. Calling of dllB function fails (returns an error code when it is supposed to work). If I write a C program that calls dllA function, then dllB functions works fine.
>
>Is there any setup/gotchas Iam missing when I do it from VFP?
>
>I appreciate ur help.
>
Hi Puri,

This is purely a guess, but my inclination would be to check to make sure that I was passing the parameters to the first DLL correctly. For example, many DLLs won't squawk a bit if you pass a string by value when it requires that you pass it by reference, they simply won't work properly.

If this isn't it, if you'd care to supply some sample code (including both the VFP and C function declaraions), then perhaps I or someone else might be able to help.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform