Results 1 to 2 of 2

Thread: Replacing value via hex?

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2009
    Posts
    60

    Replacing value via hex?

    I'm a "noob" to .Net and know very little. Nothing but basics really. I'v been searching the interwebz for a solution to this as well as these forums and I have found nothing :/ I want to automate this process requiring only a simple button.

    Here is the process I want to automate:
    Code:
    scroll down until you reach 000001a0 on the left side and column 0c on the top(This is labeled as 000001ac)
    3. Now you will need to find 00000220 on the left side and column 0b on the top(This is labeled as 0000022b)
    4. Now highlight all coding from 000001ac to 0000022b
    5. Once you have highlighted that, you will need to replace it with this:
    
    8e 7a 04 c7 2c 5e 51 b4 2b 85 ad 2e 1e 7c 49 6a
    04 44 c5 24 ce 28 42 d5 b8 23 13 f6 76 92 69 ee
    72 46 ae c3 28 5f 9b a4 9e 3f 96 06 69 15 62 62
    1b 82 d8 f6 5b 13 6c 45 5b 34 c3 ed 28 04 17 77
    98 aa 27 be 9a a9 ca eb 21 40 55 ba 10 c9 48 03
    22 cb 83 c4 b7 57 71 1c f1 2b 23 75 88 ec 1e e2
    ee cf f3 ea ba d1 e9 06 ce f9 e6 f1 f4 a5 bb 55
    6a 14 cf 9e ac cf 5c 09 0b 52 3c f9 c3 73 6f 8f
    I'm looking to make a VB.Net application that will doo all of this for me without the hassle of using a hex editor. Any ideas/suggestions?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Replacing value via hex?

    Hexadecimal is simply a way to display numbers, just like decimal, octal and binary. It is often used as a way to display bytes because each 2 hexadecimal characters represents one byte. If you have raw data, read from a file or whatever, you can store it in a Byte array. You can then manipulate the data as numbers in an array. If the data is coming from a file then File.ReadAllBytes and .WriteAllBytes will get and save the data for you.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width