![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
|
Hello!i'm new here pft,I've been programing from not too long like.....2 years ago i started to program
Well i need to make a program that has to do with HEXES What i want is a button that takes you to an offset on the file and shows you the hex and the text that the hexes means using a table file on some text boxes So you can edit the hex stuff much easier because some people get crazy seeing to much numbers.I want it to show the hexes on little text boxes and the text just in one text box,Also if i change the Text the HEX numbers have to change their value that the letter means obiously ok? Well could some one help me with the codes and stuff?Well thanks |
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8
![]() |
What do you mean? If you mean a hex editor, then take a look at the TextBox_Change property.
|
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() |
In vb there is a HEX function. It returns the hex value of a number.
Example: Dim MyHex MyHex = Hex(5) ' Returns 5. MyHex = Hex(10) ' Returns A. MyHex = Hex(459) ' Returns 1CB. Anyways, i am going to look around some more and see what i can find, havn't used much hex myself.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#4 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8
![]() |
By the way, if you want to convert it back to decimal from Hex, use:
decCode = Val ("&H" & hexCode) |
|
|
|
|
|
#5 |
|
Programming Guru
![]() ![]() |
Here's a function you might be interested in:
Public Function hex2ascii(ByVal hextext As String) As String
* *
For y = 1 To Len(hextext)
* *num = Mid(hextext, y, 2)
* *Value = Value & Chr(Val("&h" & num))
* *y = y + 1
Next y
hex2ascii = Value
End FunctionIt suppost to change a hex value into it's Ascii version. I havn't tested it at all, but it's a start. Found it after a few minutes of googling. Good luck and let us know how things go.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|