Re: IDL byteorder vs VB5 ? [message #12284] |
Wed, 15 July 1998 00:00  |
noname
Messages: 5 Registered: May 1998
|
Junior Member |
|
|
Jonas,
I already read what you post in the online help of IDL. My problem is to find
the same fonction in Visual Basic.
Do you know what it mean this sentense:
> Keyword HTONL: Set this keyword to perform host to network conversion,
> longwords.
Because for me it is pretty obscure. I'm not working on a network so, what is
this keyword for?!?!
Thanks for your answer,
Skiso
Jonas a �crit:
> skiso skrev i meddelandet <35ACC438.F0F112BC@nothing.net>...
>> Hi,
>>
>> I use a .pro file in my Visual Basic project. The fonction read a
>> header in a image file.
>> The .pro file use the fonction byteorder:
>>
>> readu, unit, h1
>> byteorder, h1, /ntohl
>>
>> My question is wath is the utility of the byteordre? Does it reverse the
>> byte in the array?
>> I need to know that because I want to transfert the IDL procedure in
>> Visual Basic code but I don't know how to translate this fonction
>> (byteorder).
>>
>> Thanks for your help,
>>
>> Skiso
>>
>
> Hope this helps:
> The BYTEORDER procedure converts integers between host and network byte
> ordering or floating-point values between the native format and XDR (IEEE)
> format.
> Calling Sequence: BYTEORDER, Variablen, /keywords
> Variablen=A named variable (not an expression or constant) that contains the
> data to be converted. The contents of Variablen are overwritten by the new
> values.
> Keyword HTONL: Set this keyword to perform host to network conversion,
> longwords.
>
> Jonas
|
|
|