Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does VFP7 support two aliases per API call?
Message
 
À
27/10/2004 02:03:53
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00954439
Message ID:
00955098
Vues:
25
>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,

It may be a problem due to the fact that VFP treats all integers as signed. There are several copies of my string to integer class in the download section. The only reason I mention it is that it allows a workaround to the problem of signed integers. For example, see Obj2Bmp or Windows Time. AIRC, both use the class that houses StringToInteger.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform