Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Declare DLL Delphi from fox
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00737621
Message ID:
00737686
Views:
15
Hi!
DECLARE SINGLE JaargiftReken IN NAdvies.DLL ;
INTEGER, ;
INTEGER, ;
INTEGER

lNLV = 200
lDr = 10
lg = 2
? JaargiftReken (lNLV, lDr, lg)
"@" passes variable by reference, that is a pointer in Delphi. Just for integer, do not use "@".

I also not sure about "Single" here - the size of "single" type might be different in Delphi and VFP, though I think it should work ok.

>Vlad,
>
>the delphi function i'm trying to access (according to the documentation) is
>
>function JaargiftReken(NLV,Dr,g:Integer):Single;
>
>(i have no clue as to whether it's correct, i have no syntactic knowledge of delphi)
>
>The datatypes seem to correspond to the types i declare in Fox.
>
>regards
>derk
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform