Solved

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

Posted on 2004-09-23
5
296 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LINQ - C# to VB convertion 12 57
VB.net/WinForms: adjust Screen Resolution 6 58
Put window Form inside tab page 10 33
Gridview selected row 9 46
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

777 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