Zipping/Unzipping files in C++

There seems to be very little in the way of simple zip/unzip class for C++. I have always liked the simplicity of Java implementation of ZipOutputStream/ZipInputStream and have made an implementation that is somewhat similar.

The sample project was made using Visual Studio 2010 and zlib-1.2.7. If you are using a different version of a compiler, you may need to recompile the zlib for your specific environment and use the newly compiled lib/dll in with the example project provided. You can find zlib at

Download Code
Download Example