>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)).