Click here to Skip to main content
15,897,187 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalmulti user application Pin
Ganesh4u23-May-04 23:11
Ganesh4u23-May-04 23:11 
GeneralRe: multi user application Pin
Dave Kreskowiak24-May-04 3:09
mveDave Kreskowiak24-May-04 3:09 
GeneralUnicode Converting Pin
Pugman81223-May-04 23:02
Pugman81223-May-04 23:02 
GeneralRe: Unicode Converting Pin
Dave Kreskowiak24-May-04 3:01
mveDave Kreskowiak24-May-04 3:01 
GeneralHardware Detection Pin
macjules23-May-04 22:07
macjules23-May-04 22:07 
GeneralRe: Hardware Detection Pin
Dave Kreskowiak24-May-04 2:50
mveDave Kreskowiak24-May-04 2:50 
Generallittle-endian/big-endian Pin
fuel2run23-May-04 21:51
fuel2run23-May-04 21:51 
GeneralRe: little-endian/big-endian Pin
Dave Kreskowiak24-May-04 2:57
mveDave Kreskowiak24-May-04 2:57 
fuel2run wrote:
a binary file that has some values in little-endian encoding and some other in big-endian encoding

WHAT?? Very strange...
But the fields that are encoded backwards would have to be read into a byte array and you'll have to write the code to reverse the byte order and then do some simple math to get the value back out.
byte0 | byte1 | byte2 | byte3

Gets reversed to:
byte3 | byte2 | byte1 | byte0

Do the math:
Value = (Byte3 << 24) + (Byte2 << 16) + (Byte1 << 8) + Byte0

Of course, this is subject to exactly how the bytes are really stores and what the value is supposed to be. You COULD have something like this if the values were stored WORD reversed instead of BYTE:
byte0 | byte1 | byte2 | byte3

Should be:
byte2 | byte3 | byte 0 | byte 1

It all depends on the system that wrote the file...


RageInTheMachine9532
"...a pungent, gastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: little-endian/big-endian Pin
fuel2run24-May-04 4:31
fuel2run24-May-04 4:31 
GeneralRe: little-endian/big-endian Pin
Dave Kreskowiak24-May-04 4:51
mveDave Kreskowiak24-May-04 4:51 
GeneralRe: little-endian/big-endian Pin
fuel2run24-May-04 6:49
fuel2run24-May-04 6:49 
GeneralRe: little-endian/big-endian Pin
fuel2run1-Jun-04 21:57
fuel2run1-Jun-04 21:57 
GeneralRe: little-endian/big-endian Pin
Dave Kreskowiak2-Jun-04 0:26
mveDave Kreskowiak2-Jun-04 0:26 
GeneralAPI Problem - ShowWindow Pin
ColonelSanders23-May-04 19:10
ColonelSanders23-May-04 19:10 
GeneralScaleWidth/ScaleHeight Explantion Pin
xfitr223-May-04 18:43
xfitr223-May-04 18:43 
GeneralRe: ScaleWidth/ScaleHeight Explantion Pin
Dave Kreskowiak24-May-04 2:38
mveDave Kreskowiak24-May-04 2:38 
Generala dll problem about vb.net Pin
Anonymous23-May-04 0:10
Anonymous23-May-04 0:10 
GeneralRe: a dll problem about vb.net Pin
Dave Kreskowiak23-May-04 4:17
mveDave Kreskowiak23-May-04 4:17 
GeneralOffice Com addin IDTExtensibility2 Pin
shinay22-May-04 22:35
shinay22-May-04 22:35 
Generalsend information to external application Pin
22-May-04 9:51
suss22-May-04 9:51 
GeneralRe: send information to external application Pin
Member 111855022-May-04 17:47
Member 111855022-May-04 17:47 
GeneralRe: send information to external application Pin
Charlie Williams22-May-04 18:46
Charlie Williams22-May-04 18:46 
GeneralRe: send information to external application Pin
Member 111855023-May-04 8:33
Member 111855023-May-04 8:33 
GeneralRe: send information to external application Pin
Charlie Williams23-May-04 8:42
Charlie Williams23-May-04 8:42 
GeneralRe: send information to external application Pin
Member 111855023-May-04 9:10
Member 111855023-May-04 9:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.