Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting a VB Statement (DECLARE -DLL)
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00170521
Message ID:
00170621
Views:
26
>Set objMy = New acode1
>Set r = objMy.calcplanets("12/23/1997", "12:15", 89.03, 6, 42.41, "W", _
> "JUP", 4, hlon, hlat, Rv, Glon, GLat, Dearth, ra, dec, asize, elong, phs, mag, False)

I think you can use the same function call. Each parameter which changes value in the function should have the 'at' sign on the front (@).

You need to declare the function with all the parameters - look at the DECLARE - DLL help. I think it goes something like this (most of my dll functions are in classes so I don't look at them much):-

DECLARE (return_value_type) calcplanets IN (libraryname)
STRING cDate,
STRING cTime,
DOUBLE xxx,
INTEGER yyy,
INTEGER @return_integer,
STRING @return_string,
INTEGER @return_string_length,
etc.

You need to make sure the upper & lower case of the function name is exact. Also initialise all the variables before actually calling the function.
Hope this helps,
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform