Information générale
Catégorie:
Fonctions Windows API
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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement