I need to typecast a 4-byte long integer variable into a single variable using Deplhi8. This is because I am reading a binary file in which single precision real numbers are stored with all four bytes swapped compared to the normal PC format. I did this typecasting ('MySingleVar := single(MyLongintVar)') when I was using Pascal for Windows and Deplhi 4, but now the compiler does not want to see this kind of operation.
Is anybody of you aware of any possible solution for this issue?
Thank you all.
Is anybody of you aware of any possible solution for this issue?
Thank you all.