Re: Reading Float Data from a binary file into ada
- From: "frikk" <frikker@xxxxxxxxx>
- Date: 30 Jan 2007 13:36:14 -0800
On Jan 30, 4:14 pm, Cesar Rabak <csra...@xxxxxxxxxxxx> wrote:
Niklas Holsti escreveu:
[snipped]
The portability of this approach is the same as for the C code: it
depends on the byte order in the VB file, the order in which you
concatenate the 4 octets into a 32-bit value, and the representation of
Float values. But if it works in C, it should work in Ada, assuming that
the Ada Float type has the same representation as the C float type,
which is likely.
0.01999: since there are not VB implementations on machines other than
Intel, I think once the 'right' endianness is found it will survive all
implementations in Ada, right?
Yes - you are correct. There will only be one windows machine that
this VB app will dump from.
Thanks for the help, I'll be back tomorrow!
.
- References:
- Reading Float Data from a binary file into ada
- From: frikk
- Re: Reading Float Data from a binary file into ada
- From: Niklas Holsti
- Re: Reading Float Data from a binary file into ada
- From: Cesar Rabak
- Reading Float Data from a binary file into ada
- Prev by Date: Re: Reading Float Data from a binary file into ada
- Next by Date: Re: Easy question about Character manipulation
- Previous by thread: Re: Reading Float Data from a binary file into ada
- Next by thread: Re: Reading Float Data from a binary file into ada
- Index(es):
Relevant Pages
|