Hello all.
I was just trying to code something that will translate HEX codes copied from disassembler into Ascii symbols.
(Hex copied from disassemblers etc looks like this: '47 75 73 68 65')
So my Idea was:
- Change all the spaces into $ + add a $ at the beginning. ($47$75$73$68$65)
- Than place each 3 bytes into a array: array[1] := '$47'; array[2] := '$47',...
- Use IntToStr to make Integer values from them (= the Decimal values).
- Use Chr to transate those into Ascii.
But already in the beginning I'm encountering a problem.
I wanted to use the AnsiReplaceText or AnsiReplaceStr functions to replace the spaces into $.
The problem is; my Compiler wouldn't want to understand AnsiReplaceText or AnsiReplaceStr as functions. (I'm using Delphi 10 Lite)
In my Help file AnsiReplaceStr & AnsiReplaceText are identified as funtions.. but they don't seem to be working..
Does anyone knows what could be going wrong here..?
Thanx in Advance;
~ GuShe.;
I was just trying to code something that will translate HEX codes copied from disassembler into Ascii symbols.
(Hex copied from disassemblers etc looks like this: '47 75 73 68 65')
So my Idea was:
- Change all the spaces into $ + add a $ at the beginning. ($47$75$73$68$65)
- Than place each 3 bytes into a array: array[1] := '$47'; array[2] := '$47',...
- Use IntToStr to make Integer values from them (= the Decimal values).
- Use Chr to transate those into Ascii.
But already in the beginning I'm encountering a problem.
I wanted to use the AnsiReplaceText or AnsiReplaceStr functions to replace the spaces into $.
The problem is; my Compiler wouldn't want to understand AnsiReplaceText or AnsiReplaceStr as functions. (I'm using Delphi 10 Lite)
In my Help file AnsiReplaceStr & AnsiReplaceText are identified as funtions.. but they don't seem to be working..
Does anyone knows what could be going wrong here..?
Thanx in Advance;
~ GuShe.;
