Click here to Skip to main content
12,633,990 members (20,474 online)
Click here to Skip to main content
Add your own
alternative version


61 bookmarked

C++ wrapper for Gilles Vollant's Unzip API

, 10 Dec 2002 Eclipse
Rate this:
Please Sign up or sign in to vote.
Presents an extended yet simplified interface to querying, filtering and extracting multiple files from a zip archive

Sample Image - unzip.jpg


I've been trawling the web for ages trying to find some zip extraction code which

  1. I could understand and
  2. did not have excessive restrictions.

Then I stumbled across Gilles Vollant's excellent work on providing a multi-file API to the ZLib code base written by Jean-loup Gailly and Mark Adler.

That was yesterday. A day later I had wrapped Gilles' code in a simplified C++ wrapper with extended features.

I don't want to gush too much, but having spent the last six months looking for code such as his, I was very impressed by how simply I could understand it and work with it.

The features I've added include:

  • Navigating/extracting the embedded files/folders by index
  • Navigating/extracting the embedded files by file extension
  • Extracting the embedded files whilst ignoring the path info stored with each file. i.e., flattening the file structure

The purpose of this release is mostly to assist people like me who were looking for some code to start with. If I come up with any useful extensions then I will update the code, but feel free (as I know you will) to criticize the code in anyway you like.

p.s. The sample app which comes with the code will show how to use it.

p.s to p.s. Although the sample app is MFC, the wrapper class is pure Win32.


This article, along with any associated source code and files, is licensed under The Eclipse Public License 1.0


About the Author

Software Developer Maptek
Australia Australia
.dan.g. is a naturalised Australian and has been developing commercial windows software since 1998.

You may also be interested in...

Comments and Discussions

AnswerRe: Where are file and folder attributs ?? Pin
dang!29-Sep-03 16:15
memberdang!29-Sep-03 16:15 
GeneralYou got a 5 from me Pin
Tom Welch9-Sep-03 4:52
memberTom Welch9-Sep-03 4:52 
GeneralRe: You got a 5 from me Pin
Ravi Bhavnani27-Sep-03 11:46
memberRavi Bhavnani27-Sep-03 11:46 
GeneralRe: You got a 5 from me Pin
dang!28-Sep-03 15:06
memberdang!28-Sep-03 15:06 
GeneralRe: You got a 5 from me Pin
Iramon21-Dec-03 21:52
memberIramon21-Dec-03 21:52 
GeneralRe: You got a 5 from me Pin
.dan.g.22-Dec-03 19:24
member.dan.g.22-Dec-03 19:24 
QuestionHow to incorporate Gilles Vollant's code to for a DLL Pin
gumber26-Aug-03 3:26
membergumber26-Aug-03 3:26 
AnswerRe: How to incorporate Gilles Vollant's code to for a DLL Pin
dang!27-Aug-03 18:16
memberdang!27-Aug-03 18:16 
GeneralRe: How to incorporate Gilles Vollant's code to for a DLL Pin
gumber29-Aug-03 22:55
membergumber29-Aug-03 22:55 
QuestionBuffering? Pin
Anonymous23-May-03 13:07
sussAnonymous23-May-03 13:07 
AnswerRe: Buffering? Pin
DanG26-May-03 16:12
memberDanG26-May-03 16:12 
GeneralSwitching to C Pin
darkchrono22-Apr-03 16:43
memberdarkchrono22-Apr-03 16:43 
GeneralRe: Switching to C Pin
DanG22-Apr-03 17:00
memberDanG22-Apr-03 17:00 
GeneralRe: Switching to C Pin
darkchrono22-Apr-03 17:17
memberdarkchrono22-Apr-03 17:17 
GeneralRe: Switching to C Pin
DanG22-Apr-03 18:49
memberDanG22-Apr-03 18:49 
GeneralRe: Switching to C Pin
darkchrono22-Apr-03 18:53
memberdarkchrono22-Apr-03 18:53 
GeneralRe: Switching to C Pin
DanG22-Apr-03 19:14
memberDanG22-Apr-03 19:14 
Questionconst UINT BUFFERSIZE = 20480 ?? Pin
alnite30-Mar-03 15:42
memberalnite30-Mar-03 15:42 
AnswerRe: const UINT BUFFERSIZE = 20480 ?? Pin
DanG1-Apr-03 17:33
memberDanG1-Apr-03 17:33 
GeneralZipper Wrapper Pin
Tyler Carver13-Mar-03 13:27
sussTyler Carver13-Mar-03 13:27 
GeneralRe: Zipper Wrapper Pin
DanG13-Mar-03 19:49
memberDanG13-Mar-03 19:49 
Generalexclude libs Pin
Beer11-Jan-03 19:21
memberBeer11-Jan-03 19:21 
GeneralFeedback Pin
Larry Antram10-Dec-02 22:44
memberLarry Antram10-Dec-02 22:44 
GeneralRe: Feedback Pin
DanG10-Dec-02 23:35
memberDanG10-Dec-02 23:35 
GeneralRe: Feedback Pin
Uwe Keim11-Dec-02 20:53
sitebuilderUwe Keim11-Dec-02 20:53 
GeneralRe: Feedback Pin
Andreas Saurwein12-Dec-02 10:12
memberAndreas Saurwein12-Dec-02 10:12 
GeneralRe: Feedback Pin
Andreas Saurwein11-Dec-02 2:25
memberAndreas Saurwein11-Dec-02 2:25 
GeneralRe: Feedback Pin
Matthias Mann12-Dec-02 3:28
memberMatthias Mann12-Dec-02 3:28 
GeneralRe: Feedback Pin
Andreas Saurwein12-Dec-02 10:10
memberAndreas Saurwein12-Dec-02 10:10 
GeneralGood But... Pin
bruno leclerc10-Dec-02 22:03
memberbruno leclerc10-Dec-02 22:03 
GeneralRe: Good But... Pin
Luca Piccarreta10-Dec-02 23:18
memberLuca Piccarreta10-Dec-02 23:18 
GeneralRe: Good But... Pin
DanG10-Dec-02 23:38
memberDanG10-Dec-02 23:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161208.2 | Last Updated 11 Dec 2002
Article Copyright 2002 by .dan.g.
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid