Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declare DLL Delphi from fox
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Declare DLL Delphi from fox
Miscellaneous
Thread ID:
00737621
Message ID:
00737621
Views:
68
Hi 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
Derk Schutte
Next
Reply
Map
View

Click here to load this message in the networking platform