Click here to Skip to main content
Licence 
First Posted 10 Dec 2002
Views 157,988
Downloads 3,261
Bookmarked 54 times

C++ wrapper for Gilles Vollant's Unzip API

By .dan.g. | 10 Dec 2002
Presents an extended yet simplified interface to querying, filtering and extracting multiple files from a zip archive
2 votes, 9.1%
1

2

3
3 votes, 13.6%
4
17 votes, 77.3%
5
4.77/5 - 22 votes
2 removed
μ 4.57, σa 2.07 [?]

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

.dan.g.

Software Developer
Maptek
Australia Australia

Member

Follow on Twitter Follow on Twitter
.dan.g. is a former chartered structural engineer from the uk. He's been programming since university and has been developing commercial windows software in Australia since 1998.
 
For all his latest freeware visit AbstractSpoon.
Follow him on Facebook, or on Twitter.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralOnly Console mode Pinmembermsadik4:57 24 Jun '05  
Generalfile name directory Pinmembersir kaber20:18 5 Mar '05  
GeneralRe: file name directory Pinmembersir kaber20:19 5 Mar '05  
GeneralRe: file name directory Pinmemberrajalist20:49 7 Dec '06  
QuestionWhy win32? Pinmembertentons14:25 27 Aug '04  
QuestionIs this thing still alive ? PinsussAnonymous19:07 6 Jul '04  
QuestionCan you help me? PinmemberAlick Xiong22:42 17 Jun '04  
QuestioneVC++? PinmemberHameed Chishti1:48 15 May '04  
GeneralFolder attributs are forget too !! Pinmemberbebert5:07 2 Dec '03  
QuestionWhere are file and folder attributs ?? Pinmemberbebert23:44 28 Sep '03  
AnswerRe: Where are file and folder attributs ?? Pinmemberdang!16:15 29 Sep '03  
GeneralYou got a 5 from me PinsupporterTom Welch4:52 9 Sep '03  
GeneralRe: You got a 5 from me PinmemberRavi Bhavnani11:46 27 Sep '03  
GeneralRe: You got a 5 from me Pinmemberdang!15:06 28 Sep '03  
GeneralRe: You got a 5 from me PinmemberIramon21:52 21 Dec '03  
GeneralRe: You got a 5 from me Pinmember.dan.g.19:24 22 Dec '03  
QuestionHow to incorporate Gilles Vollant's code to for a DLL Pinmembergumber3:26 26 Aug '03  
AnswerRe: How to incorporate Gilles Vollant's code to for a DLL Pinmemberdang!18:16 27 Aug '03  
GeneralRe: How to incorporate Gilles Vollant's code to for a DLL Pinmembergumber22:55 29 Aug '03  
QuestionBuffering? PinsussAnonymous13:07 23 May '03  
AnswerRe: Buffering? PinmemberDanG16:12 26 May '03  
GeneralSwitching to C Pinmemberdarkchrono16:43 22 Apr '03  
GeneralRe: Switching to C PinmemberDanG17:00 22 Apr '03  
GeneralRe: Switching to C Pinmemberdarkchrono17:17 22 Apr '03  
GeneralRe: Switching to C PinmemberDanG18:49 22 Apr '03  

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.

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