Re: IDL byteorder vs VB5 ? [message #12285 is a reply to message #12284] |
Wed, 15 July 1998 00:00  |
Jonas
Messages: 23 Registered: May 1998
|
Junior Member |
|
|
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
|
|
|