Mark Nelson's zlib article, originally published in Dr. Dobb's Journal. The source code for the article includes an OCX that allows you to use zlib from many different languages under Win32
If you are attempting to use the zlib OCX with Visual Basic or Visual C++, please follow the links to my FAQ. The OCX that accompanies this article needed an upgrade to work with later versions of Microsoft's tools.