08-09-2006 03:22 AM
08-09-2006 04:25 AM
08-09-2006 08:10 AM
08-09-2006 09:28 AM
08-09-2006 08:41 PM
08-10-2006 04:40 AM
One of your problems is that Scan() is a string based function, so it will stop on the 00. If I understand your application correctly, you do not need to use this function at all (it is designed to read/convert ASCII strings, which you do not have); your binary data is already present in an array (raw) so you can simply access the elements directly.
I cannot translate the comments in your function SwapBytes(), but I suspect you might want to have another look at it to see if it should be a float function, not an int one? Similarly for your data array of ints - are you trying to store floats in it?
JR
08-10-2006 05:54 AM
Thanks, and I got it. I use ScanFile() and it works,
Thanks!
Jacky