Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stumped by a DLL
Message
From
03/10/2005 15:28:07
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01052286
Message ID:
01055595
Views:
13
Thanks, Mike!

Glad to see you posting in a VFP forum!

>>foo(@value1,@value2)
>>
>>The result is that value1 and value2 come back with a strange value such as 2.63E-308.
>
>I'm a little late to the party on this one, but didn't see that you actually got an answer yet. Go dig up a KB entitled "HOWTO: Pass Structures to a DLL". In that article are two functions that convert strings to (some numeric format that I've forgotten) and back again. Should be at the bottom of the code.
>
>Now, reserve your memory for the variables as strings. IOW, value1=SPACE(255). Pass these by reference, call the function, and let the StringToNum function from the article work it's magic. There even examples of this in the article.
>
>If the two functions don't do the numeric format you want, let me know, I've got others lying around somewhere.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform