Einzelnen Beitrag anzeigen

scp

Registriert seit: 31. Okt 2003
1.120 Beiträge
 
Delphi 7 Personal
 
#11

Re: find hex codes in files

  Alt 24. Jul 2004, 17:25
My example was especially for the case you described: You said, yo don't know if there are more than 3 spaces.

To your question:
Delphi-Quellcode:
Buffer: array[0..6] of char;
buffer2: array[0..3] of char;
After writing to the buffer, you should use
Delphi-Quellcode:
Buffer[6] := #0;
Buffer2[3] := #0;
because then you can use it as a nullterminated string
Delphi-Quellcode:
version := version + StrPas(Buffer);
//...
version := version + StrPas(Buffer2);
A simple + doesn't work in most cases.
  Mit Zitat antworten Zitat