Connecting Tech Pros Worldwide Forums | Help | Site Map

how to create a hex reader/compiler/editor

Newbie
 
Join Date: Sep 2007
Posts: 11
#1: Sep 27 '07
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!

Expert
 
Join Date: Aug 2007
Posts: 674
#2: Sep 27 '07

re: how to create a hex reader/compiler/editor


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?
Newbie
 
Join Date: Sep 2007
Posts: 11
#3: Sep 27 '07

re: how to create a hex reader/compiler/editor


Quote:

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.....until tis thats all they had included to me!
Expert
 
Join Date: Aug 2007
Posts: 674
#4: Sep 27 '07

re: how to create a hex reader/compiler/editor


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.
Newbie
 
Join Date: Sep 2007
Posts: 11
#5: Sep 27 '07

re: how to create a hex reader/compiler/editor


Quote:

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.
Reply