General information
Category:
Windows API functions
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only