Urgent: Converting Byte(4) into integer (VB.Net)

ok, what I've got is...

24 08 00 00 which is apparently equal to 2084

equally

10 00 00 00 = 16
99 58 01 00 = 88200

I'm attempting breaking down a wave file for analysis.  I'm getting all my information off http://ccrma.stanford.edu/CCRMA/Courses/422/projects/WaveFormat/

Sorry if I'm sounding stupid but I'm having a bit of difficulty working with this out... It's probably fairly obvious (well, isn't it always when you know how).

Anyway, if anyone can explain how 24080000 is equal to 2084... please help! ;)

I'm hoping it's simple enough so a simple function would calculate it for the rest of the value i'll need in the file!

Thanks,

Tim
LVL 4
w3timAsked:
Who is Participating?
 
jrandallsextonConnect With a Mentor Commented:
Well, since these hex values are coming in reverse...

It seems that you're going to have to write a function to transpose
88 58 01 00
into
00 01 58 88

Then you can use this:
MsgBox(CLng("&H" & "00015888").ToString)
to give you the decimal value.
0
 
jrandallsextonCommented:
Looks like you have hex:
2084d = h824 (turn it around 24 08 00 00h)
88200d = h15888

0
 
w3timAuthor Commented:
Sorry, end of the day for me, I'm struggling.

Could you give me a rought guide for what I'm looking to do with the code!!
0
 
w3timAuthor Commented:
Fantastic, that seems to be what I need :)!
0
 
jrandallsextonCommented:
Glad I could help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.