How do I get the 3d byte of a word?

I have a follow up question. I now need to go the other direction. I have three bytes representing the lower 3 bytes of a long. I need to construct an unsigned long out of them and set the remaining 8 most significant bits of the long to 0. How do I pull that off?

Thanks,

  • Bret