-
Basically i have made a small program that uses the Replace function to search for a specified string and replace it with whatever i choose from a binary file..i'm just having problems replacing non string characters...In the
Replace(variable, "string", "different string")
string will be replacd with different string..but what if i want the value 00 in hex (which can't be typed instead of string beacuse i don't know how..is there an ascii character for 00 hex value?) to be replaced with 2E (full stop)...what do i need to do? help!
TiCaL
:eek:
-
To use hex values, prefix the hex value with &H, so 255 in hex is &HFF.
You don't have to work with hex though, just convert your hex to decimal - 2F in hex = 47 in decimal.
-
I knew that but...
Let's say i wanna search for a hex value 006865782D737472696E6700 (which is equal to .hex-value. . is a 00) and replace it with 000000000000000000000000..?
00 are important? how do i do that?
PLEASE HELP
-
I see. Why don't you just add a "00" to the string you're replacing the hex value with for each byte in your hex value? Make sense? Maybe I missed something.
-
Have a search on planet-source-code.com, theres a really good hex editro just been posted.