Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help!! Calling C dll function from VFP program
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00204368
Message ID:
00204394
Views:
19
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform