Is this not a possible solution
I have assumed that arr[2] is the MSB and arr[0] is LSB.Code:BYTE arr[3] = {0x23, 0x45, 0x67}; UINT val = arr[2] << 16 | arr[1] << 8 | arr[0];
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 8 of 8
Threaded View
|
Click Here to Expand Forum to Full Width |