|
-
Oct 1st, 2000, 02:24 AM
#1
Thread Starter
New Member
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

-
Oct 1st, 2000, 02:33 AM
#2
Frenzied Member
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.
Harry.
"From one thing, know ten thousand things."
-
Oct 1st, 2000, 03:03 AM
#3
Thread Starter
New Member
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
-
Oct 1st, 2000, 03:26 AM
#4
Frenzied Member
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.
Harry.
"From one thing, know ten thousand things."
-
Oct 1st, 2000, 03:35 AM
#5
Frenzied Member
Have a search on planet-source-code.com, theres a really good hex editro just been posted.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|