Solved

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

Posted on 2004-09-23
5
292 Views
Last Modified: 2010-04-23
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
0
Comment
Question by:w3tim
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:jrandallsexton
ID: 12134790
Looks like you have hex:
2084d = h824 (turn it around 24 08 00 00h)
88200d = h15888

0
 
LVL 4

Author Comment

by:w3tim
ID: 12134888
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
 
LVL 4

Accepted Solution

by:
jrandallsexton earned 500 total points
ID: 12135054
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
 
LVL 4

Author Comment

by:w3tim
ID: 12135156
Fantastic, that seems to be what I need :)!
0
 
LVL 4

Expert Comment

by:jrandallsexton
ID: 12135164
Glad I could help.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now