General information
Category:
Windows API functions
A couple of other problems:
Make sure the program can find the .DLL file (path). It will not give you an error when you declare the DLL but it will when you try and call the function.
If you make an error declaring the DLL then use a CLEAR DLLS ALL and redeclare. For some reason it sometimes seems to get stuck on the error and will not take the correction until you clear.
i everyone.
>
>For a new webapplication we recently bought a non-COM DLL, that we're trying to use from VFP. We've used DLL's like this before using DECLARE DLL (for instance, we've used WIN32 functions). This particular DLL is written in Delphi. Everything works wel untill we try to call the function, it then tells us "Declare DLL call caused an exception". When looking it up in the help, it tells us this is probably caused by a wrong datatype delaration.
>
>I am aware of case sensitivity and datatype constraints. The Single en Integer declarations in the code come right out of the documentation with the product.
>
>This is what we try :
>*!* start code
>DECLARE SINGLE JaargiftReken IN NAdvies.DLL ;
> INTEGER @, ;
> INTEGER @, ;
> INTEGER @
>
>Local lNLV,lDr,lg as Integer
>
>lNLV = 200
>lDr = 10
>lg = 2
>? JaargiftReken (@lNLV, @lDr, @lg)
>*!* end code
>This should work right, but it doesn't. Does anyone have any experience with this situation?
>
>TIA
>Derk Schutte
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only