phew I thought there was some magic going on somewhere. Thanks again cragwolf. I'm just trying to create a proper zlib.dll and libpng.dll on Win32 at the moment and it's not easy as I'm using Borland C/C++ compilers.