hi timmers, you example is for calculate cyclic redundancy check (CRC16). look here two example one using Vb6 the another one with PBP. i use both

http://www.picbasic.co.uk/forum/showthread.php?t=16735

here explain how to that:

http://en.wikipedia.org/wiki/Computation_of_CRC