Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-09-23
5
Medium Priority
?
313 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
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…
Loops Section Overview
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

877 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