Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays in C dlls
Message
From
22/02/1999 19:47:46
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00190091
Message ID:
00190255
Views:
12
The easiest way I know is to pass the double value and a 8-byte char string to a dll C function that takes the double and maps it to the string (it can be done with only one copy of a double and some casts, which is very fast). I think I gave once some code for this on UT but I can't find it right now.

Since VFP knows that it has passed a 8 byte string, it will receive a 8 byte string, so, no problems if a chr(0) reuslts in the string from the conversion.

Vlad

>Converting VFP numbers to DOUBLE representation is the stumbling block here;
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform