Quote Originally Posted by virtual
@NecroDOME , thnx for the code , but didn't work
You need to change
pDest : PDWORD;
from your original code to
pDest: PByte

inc(pb) in Necro's code increases address by 1, but if you use inc(pDest) where pDest is PDWORD it increases address by 4.