Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem calling .DLL file
Message
 
To
28/07/1999 17:22:45
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00247416
Message ID:
00247858
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform