Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use a DLL
Message
From
31/03/2000 00:55:46
 
 
To
30/03/2000 05:35:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00352607
Message ID:
00353150
Views:
12
The error is usually caused because the dll function names are case sensitive.

It may also be a C++ dll (since it works with a C++ program). A C++ dll should export functions in C style to be visible
from VFP. If it exports functions in C++ style, then the function names are encoded (mangled) and they can
be used only from C++ programs.

The easiest way to diagnose the problem is to look into the dll and see what functions are exported.
To do it, you can use the Quick Viewer, the Dependency Walker (depend.exe) from the WinNT Resource Kit, or the
dumpbin.exe program installed by VC++. There are any other dll viewers, but, usually, at least one of the above
is available on any development computer.

Vlad

>I have DLL named SIP.DLL. This DLL contain function SendLine.
>I want use it. In VFP I use command
>DECLARE INTEGER SendLine IN SIP.DLL STRING cPort, STRING cString, STRING cAddress, STRING cFlowControl
>This command work o.k. Next I use command
>nRetVal=Sendline('1','Text','1')
>When I use this command VFP return error 'Cannot find entry point
>SendLine in the DLL'. What does it mean?
>Name of function SendLine is correct, because I have another program
>in C++ which use SendLine and this C++ program work o.k.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform