how to create a hex reader/compiler/editor

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kelly86
    New Member
    • Sep 2007
    • 11

    how to create a hex reader/compiler/editor

    hi guys im stuck here...actually i was asked 2 use C language to create a hex reader/compiler/editor, for use in test department for modifying *.bin files.
    Well as a new trainee in this company i can't really u'stand how to do it!
    can anyone explain me wat should i do to in order to create a program for this company.
    1)should i use array or structure for this program?
    2)how to convert it into a hex file?


    thank you for your help and guides in advance!
  • oler1s
    Recognized Expert Contributor
    • Aug 2007
    • 671

    #2
    There's lots of free hex editors out there like xvi32, and so on. Why are you creating another one? Is there something special your department wants with this hex editor?

    Comment

    • kelly86
      New Member
      • Sep 2007
      • 11

      #3
      Originally posted by oler1s
      There's lots of free hex editors out there like xvi32, and so on. Why are you creating another one? Is there something special your department wants with this hex editor?
      well actually they wan me to display it in this order
      address Value
      00 0x05 00x0 ............... ............... ........
      01 ............... ............... ............... .........
      02 ............... ............... ............... .
      03 ............... ............... ............... ...

      well they juz want me to create it to repalce their *bin files...maybe because
      im juz a trainee they doesn't want to elobrate about it much!
      izit easy to create a hex editor?they had included me the DJGPP software to create the program.....unt il tis thats all they had included to me!

      Comment

      • oler1s
        Recognized Expert Contributor
        • Aug 2007
        • 671

        #4
        I'm not sure I quite understand what you're saying, although, your bad grammar, spelling, and lack of effort at giving details aren't helping. So I'll ask you a few questions instead.

        1. Have your employers and have you ever used a hex editor? You can get one for free by using Google. xvi32 is the name of one of them, and there's countless of quality editors out there. Both you and your employers should try a few of them out and see what a hex editor is like.
        2. Have you ever programmed before?
        3. Have you programmed in C before?
        4. Do you know how to read large files? Do you know how to manage large buffers in memory? How much experience with data structures and algorithms do you have?
        5. If you are still required to program a hex editor, you need details. Does it intuitively make sense that to write a program, you need details about what to write? Do you understand it is impossible to create something when you have absolutely no detail about what to create?
        6. Did you by any chance misrepresent your skillset to your employers? By your questions, and grammatical capabilities, It seems like you know near to nothing about C, or programming for that matter.

        Comment

        • kelly86
          New Member
          • Sep 2007
          • 11

          #5
          Originally posted by oler1s
          I'm not sure I quite understand what you're saying, although, your bad grammar, spelling, and lack of effort at giving details aren't helping. So I'll ask you a few questions instead.

          1. Have your employers and have you ever used a hex editor? You can get one for free by using Google. xvi32 is the name of one of them, and there's countless of quality editors out there. Both you and your employers should try a few of them out and see what a hex editor is like.
          2. Have you ever programmed before?
          3. Have you programmed in C before?
          4. Do you know how to read large files? Do you know how to manage large buffers in memory? How much experience with data structures and algorithms do you have?
          5. If you are still required to program a hex editor, you need details. Does it intuitively make sense that to write a program, you need details about what to write? Do you understand it is impossible to create something when you have absolutely no detail about what to create?
          6. Did you by any chance misrepresent your skillset to your employers? By your questions, and grammatical capabilities, It seems like you know near to nothing about C, or programming for that matter.

          of course i had programmed in C before.yup i know to read larger files....well i had used c,c++ and java before....just that i don't have any experience in using hex editor thats all......my employers haven't give yet any details about what to write in the program....for time being i juz wanted to know the concept thats all.

          Comment

          Working...