a simple union would also do
union ul
{
BYTE b[4];
ULONG result;
} ;
setting the correct bytes in b in the correct order ( according to the endianess of the machine ofc)
you can the access result as an ulong.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 10 of 10
Thread: Converting BYTE[] to ULINGThreaded View
|
Click Here to Expand Forum to Full Width |