Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB Call to API vs VFP
Message
From
21/08/1999 01:41:10
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00255827
Message ID:
00256213
Views:
25
>>And SINGLE and DOUBLE don't work properly for the return value.
>>
>
>Actually, from a bit of experimentation with Christof's help, we proved out that SINGLE and DOUBLE put the value back into the variable, but it doesn't update the value with the new precision, resulting in some funny rounding. As I pointed out, pre-initing a DOUBLE variable to a value with correct precision seems to work OK (IOW, init the variable receiving the DOUBLE or SINGLE to 0.00000000000000000000) and it seems to work OK; it definitely fixed the problem with DOUBLE passed by reference and copied in and out using RtlMoveMemory() in a parameter.

I was talking about return value, not parameters. Did you find a solution for return values too?

Vlad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform