Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem calling .DLL file
Message
 
À
28/07/1999 17:22:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00247416
Message ID:
00247858
Vues:
19
>I got a problem calling a .DLL from VFP6.
>
>this line of code correctly loads the dll into memory, this is proved when I type DISPLAY STATUS in the command window...
>
>declare string accessit in kendll string
>
>...then I call the dll with the line below.
>
>x=accessit("FINDADDRESS","KEN")
>
>FINDADDRESS is a subfunction in my dll (which is correctly displayed in the list of entry points when I right-click the dll and click 'view dependencies'.) All FINDADDRESS does is retrieve a piped string from an oracle database. The error message says: cannot find entry point in dll.
>
>Help! Any ideas most welcome.

Is your DLL written in C++? I've had this problem with a DLL written in C++. The solution was to declare it as WINAPI (I can't remember the exact syntax but something like extern int WINAPI funcname(etc)).
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform