How to convert

  • Thread starter Thread starter Anoj
  • Start date Start date
A

Anoj

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
 
sorry !
The correct array values are

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

Thanks
Anoj Kumar
 
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" <[email protected]> escribió en el mensaje | 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
 
Back
Top