Forum: Programmieren allgemein
by cdkiller,
24. Jul 2004
ok i have found it.
it this okay or have it errors btw can it reads other files not correct ?
procedure TForm1.Button3Click(Sender: TObject);
var
thepos: integer;
fs: TFileStream;
Buffer: array of char;
Forum: Programmieren allgemein
by cdkiller,
24. Jul 2004
? i can't understand your code ?
it is not easier to load the file in a filestream. then seek to the postion of the AddD string + 8 chars forwad
that the cursor is after "AddD ".
than the version number is 14 chars long. from the position read the filestream in a buffer which is 14 chars long.
but when i tried to prompt the buffer, it is empty. why ?
Forum: Programmieren allgemein
by cdkiller,
24. Jul 2004
ok i have found the error.
now it is perfect.
but here is also a problem because how can i get the bytes after the addD string ?
example:
in one file here are the string:
Forum: Programmieren allgemein
by cdkiller,
24. Jul 2004
ok thanks. :wall:
but this is not all. i have more problems with the function which should find these strings.
first i have convert the hex bytes into the char format whith the code at the top.
now i have also strings to search like this:
AddD 4.84
Forum: Programmieren allgemein
by cdkiller,
24. Jul 2004
in your code there is a error in the function which i cannot find.
if i try to hextochar('41')(or other hex chars) the output in my variable is always
why ?
cu
cdkiller