From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2aaba1527862ef22 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Reading Float Data from a binary file into ada References: <1170172307.292500.256090@m58g2000cwm.googlegroups.com> In-Reply-To: <1170172307.292500.256090@m58g2000cwm.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1170179804 12.201.97.213 (Tue, 30 Jan 2007 17:56:44 GMT) NNTP-Posting-Date: Tue, 30 Jan 2007 17:56:44 GMT Organization: AT&T ASP.att.net Date: Tue, 30 Jan 2007 17:56:44 GMT Xref: g2news2.google.com comp.lang.ada:8725 Date: 2007-01-30T17:56:44+00:00 List-Id: frikk wrote: > > Basically I need to be able to read in the binary data byte by byte > but store it into a 32 bit Float. The C union example above uses the > same memory address for the Float as it does for the size 4 char > array. I don't even know if the VB dump will correspond with the way > ada handles floats or not, but I'll worry about that later. Any reason you can't call this C function from Ada? -- Jeff Carter "I soiled my armor, I was so scared." Monty Python & the Holy Grail 71