Hi, i am currently creating a project that makes use of binary files containing char, ulong and ulonglong datatypes. Opening the file and storing it on a pointer is no problem in Qt for I just use QFile.

The problem arises when I try to display data of type ulong and ulonglong. Qt reads its from the least significant bit to the most significant bit.

So for example i will have to read a ulong long datatype:
(hex) 00 00 00 00 3e 80 00 00 1048576000(in decimal)

..when I view the data in memory editor, it appears ok but when I use it to populate my struct, it reads in reverse. My text box displays 80 3e 00 00 00 00.

Can anyone enlighten me?

thanks!