By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,238 Members | 1,485 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,238 IT Pros & Developers. It's quick & easy.

How to convert

P: n/a
Hi All ,

How can i convert below byte array to 64 bit value using VB.Net

Dim Buff(7) as Byte=new Byte{&HBB,&HAA,&HDD,&HFF,&HAA,&HCC,&HDD}

Thanks
Anoj Kumar

Apr 6 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
sorry !
The correct array values are

Dim Buff() as Byte=new Byte{&HBB,&HAA,&HDD,&HFF,&HAA,&HCC,&HEE,&HDD}

Thanks
Anoj Kumar

Apr 6 '06 #2

P: n/a
Hello Anoj,

Dim Buff() as Byte = New Byte{&HBB, &HAA, &HDD, &HFF, &HAA, &HCC, &HEE, &HDD}
Dim v as Long = BitConverter.ToInt64(Buff,0)

Regards.
"Anoj" <su********@gmail.com> escribió en el mensaje news:11**********************@z34g2000cwc.googlegr oups.com...
| Hi All ,
|
| How can i convert below byte array to 64 bit value using VB.Net
|
| Dim Buff(7) as Byte=new Byte{&HBB,&HAA,&HDD,&HFF,&HAA,&HCC,&HDD}
|
| Thanks
| Anoj Kumar

Apr 6 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.