Click here to Skip to main content
Click here to Skip to main content
Go to top

C++ wrapper for Gilles Vollant's Unzip API

, 10 Dec 2002
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

Introduction

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.

License

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

Share

About the Author

.dan.g.
Software Developer Maptek
Australia Australia
.dan.g. is a naturalised Australian and has been developing commercial windows software since 1998.
 
For all his latest freeware visit AbstractSpoon.

Comments and Discussions

 
GeneralOnly Console mode Pinmembermsadik24-Jun-05 3:57 
Hi all,
How can i use these sample with no graphics, in a project Console (vc++.net)
Best regardsUnsure | :~
Generalfile name directory Pinmembersir kaber5-Mar-05 19:18 
GeneralRe: file name directory Pinmembersir kaber5-Mar-05 19:19 
GeneralRe: file name directory Pinmemberrajalist7-Dec-06 19:49 
QuestionWhy win32? Pinmembertentons27-Aug-04 13:25 
QuestionIs this thing still alive ? PinsussAnonymous6-Jul-04 18:07 
QuestionCan you help me? PinmemberAlick Xiong17-Jun-04 21:42 
QuestioneVC++? PinmemberHameed Chishti15-May-04 0:48 
GeneralFolder attributs are forget too !! Pinmemberbebert2-Dec-03 4:07 
QuestionWhere are file and folder attributs ?? Pinmemberbebert28-Sep-03 22:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
Web04 | 2.8.140916.1 | Last Updated 11 Dec 2002
Article Copyright 2002 by .dan.g.
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid