Big Endian Float

  • Thread starter Thread starter jjenny
  • Start date Start date
J

jjenny

I need to read data from big endian files and convert the Float 32 to VB
single.

I use the adress ( get #1,3601,data_Float) to read data

How to convert easily ? (in VB6...)

Thank for the solution.
 
I need to read data from big endian files and convert
the Float 32 to VB single.
I use the adress ( get #1,3601,data_Float) to read data
How to convert easily ? (in VB6...)

This is a vb.net group and vb.net code is incompatible with Classic Visual
Basic (the VB6 that you are using) so you would be better off posting your
question in one of the Classic VB groups, such as
microsoft.public.vb.general.discussion. However, if your bigendian Float
uses the same format as a VB Single (other than the order of bytes being
reversed) then you can use CopyMemory to copy the bytes from your data_Float
in the required order to the bytes of a VB Single. What type of variable are
you using for data_Float by the way?

Mike
 
Back
Top