Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 4th, 2004, 12:14 AM   #1
TheBigBadWolf
Newbie
 
Join Date: Jul 2004
Posts: 1
Rep Power: 0 TheBigBadWolf is on a distinguished road
Send a message via MSN to TheBigBadWolf
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
TheBigBadWolf is offline   Reply With Quote
Old Jul 12th, 2004, 6:57 AM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8 Ooble is on a distinguished road
What do you mean? If you mean a hex editor, then take a look at the TextBox_Change property.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jul 13th, 2004, 8:47 AM   #3
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
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!
Pizentios is offline   Reply With Quote
Old Jul 13th, 2004, 8:49 AM   #4
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8 Ooble is on a distinguished road
By the way, if you want to convert it back to decimal from Hex, use:
decCode = Val ("&H" & hexCode)
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jul 13th, 2004, 9:30 AM   #5
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
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 Function

It 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!
Pizentios is offline   Reply With Quote
Old Jul 13th, 2004, 9:34 AM   #6
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8 Ooble is on a distinguished road
I can't be arsed to test it, but it looks fine.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:50 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC