![]() |
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 |
What do you mean? If you mean a hex editor, then take a look at the TextBox_Change property.
|
In vb there is a HEX function. It returns the hex value of a number.
Example: :
Dim MyHexAnyways, i am going to look around some more and see what i can find, havn't used much hex myself. |
By the way, if you want to convert it back to decimal from Hex, use:
:
decCode = Val ("&H" & hexCode) |
Here's a function you might be interested in:
:
Public Function hex2ascii(ByVal hextext As String) As StringIt 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. |
I can't be arsed to test it, but it looks fine.
|
| All times are GMT -5. The time now is 8:29 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC