Try using the ZLib.dll, it's very easy to use... it has only 2 functions, compress/decompress

http://www.winimage.com/zLibDll/
http://www.gzip.org/zlib/