Click here to Skip to main content
6,635,885 members and growing! (21,684 online)
Email Password   helpLost your password?
Languages » C / C++ Language » General     Intermediate

C++ wrapper for Gilles Vollant's Unzip API

By .dan.g.

Presents an extended yet simplified interface to querying, filtering and extracting multiple files from a zip archive
VC6Win2K, Dev
Posted:10 Dec 2002
Views:130,443
Bookmarked:48 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
21 votes for this article.
Popularity: 6.03 Rating: 4.56 out of 5
2 votes, 9.5%
1

2

3
3 votes, 14.3%
4
16 votes, 76.2%
5

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.


Member
.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 http://www.abstractspoon.com/
Occupation: Software Developer (Senior)
Location: Australia Australia

Other popular C / C++ Language articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 25 of 42 (Total in Forum: 42) (Refresh)FirstPrevNext
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  
GeneralWhy win32? Pinmembertentons14:25 27 Aug '04  
GeneralIs this thing still alive ? PinsussAnonymous19:07 6 Jul '04  
GeneralCan you help me? PinmemberAlick Xiong22:42 17 Jun '04  
GeneraleVC++? PinmemberHameed Chishti1:48 15 May '04  
GeneralFolder attributs are forget too !! Pinmemberbebert5:07 2 Dec '03  
GeneralWhere are file and folder attributs ?? Pinmemberbebert23:44 28 Sep '03  
GeneralRe: 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  
GeneralHow to incorporate Gilles Vollant's code to for a DLL Pinmembergumber3:26 26 Aug '03  
GeneralRe: 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  
GeneralBuffering? PinsussAnonymous13:07 23 May '03  
GeneralRe: 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    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 10 Dec 2002
Editor: Smitha Vijayan
Copyright 2002 by .dan.g.
Everything else Copyright © CodeProject, 1999-2009
Web18 | Advertise on the Code Project