Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does VFP7 support two aliases per API call?
Message
From
27/10/2004 02:03:53
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00954439
Message ID:
00954774
Views:
18
Hi George,

slightly off topic, but since you answered to the "RtlMoveMemory",
perhaps you can straighten me out...(at the moment I am not thinking to clearly, to much midnight oil <g>)

Sometimes I have to convert WINAPI 32Bit unsigned integers (LONG) to vfp numerics,
and this conversion should be as fast as possible for use in timing routines:
the "normal" runtime characteristics shouldn't be disturbed by timing routines.

AFAIR I tried doing that with RtlMoveMemory once, but ran into trouble somewhere around 2**31,
which meant for me some problem with the bit defining the sign of the number, or translation problems with INTEGER/LONG in the declare line.

At the moment I cannot find the code for that, but since I wanted to follow up on this approach and
compare this way of operating to my best vfp-based solutions, perhaps I'll try to recreate it.

First, is there anything conceptually wrong with such an approach ?
I thought this should be something like typecasting in vfp: interpret the bytes from a certain memory location as a specific type.
I seem to remember a difference in the range of integers for table fields from vfp to sql server,
but that shouldn't be a factor here AFAIK.

Any thoughts ?

Regards,

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform