Deldy #1 Can this maybe be becource you using and INT in the Dll and a floart in the blitzcode? :-p try removing the "%" and then see.