Information générale
Catégorie:
Fonctions Windows API
>>Im trying to convert an integer to U_LONG, I have seen code that converts a number to LONG, is it possible to convert an integer to U_LONG?
>>
>>Mike
>
>Mike,
>If you'd pass that as a numeric value then receiver could cast it. Otherwise transform(,'@0') and pad with chr(0)s.
>Cetin
No... Thanks anyway, that does not work...
What I would like is a function like the NumToLong Function in the clsheap class, But instead of Long I want U_LONG.
I know there is a difference between sign long, and unsign long. Both are 4 bytes, but there is a difference in the 31 bit? Or sign is 0-255, and unsign is -127 to 127? Or its reversed? I just dont know how to create one in VFP. I see that creating a LONG is possible, how bout a u_long?
Thanx,
Mike
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