5,139,275 members and growing! (11,511 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
VC6, C++Windows, Win2KVS6, VS, Dev

Posted: 10 Dec 2002
Updated: 10 Dec 2002
Views: 109,357
Announcements



Search    
Advanced Search
Sitemap
20 votes for this Article.
Popularity: 5.91 Rating: 4.55 out of 5
2 votes, 10.0%
1
0 votes, 0.0%
2
0 votes, 0.0%
3
3 votes, 15.0%
4
15 votes, 75.0%
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.


.dan.g. is a former chartered structural engineer from the uk. He's been programming for 25 years since university and has been developing commercial windows software in Australia since 1998. He has a shaved head and assorted whiskers should you want to recognize him. [update] Dan has now grown his hair and removed his whiskers in an attempt to appear more normal. However he can still be recognized (in the summer months) by the aqua nail-polish he uses on his big toes. [/update]

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
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 25 of 42 (Total in Forum: 42) (Refresh)FirstPrevNext
Subject  Author Date 
GeneralOnly Console modemembermsadik4:57 24 Jun '05  
Generalfile name directorymembersir kaber20:18 5 Mar '05  
GeneralRe: file name directorymembersir kaber20:19 5 Mar '05  
GeneralRe: file name directorymemberrajalist20:49 7 Dec '06  
GeneralWhy win32?membertentons14:25 27 Aug '04  
GeneralIs this thing still alive ?sussAnonymous19:07 6 Jul '04  
GeneralCan you help me?memberAlick Xiong22:42 17 Jun '04  
GeneraleVC++?memberHameed Chishti1:48 15 May '04  
GeneralFolder attributs are forget too !!memberbebert5:07 2 Dec '03  
GeneralWhere are file and folder attributs ??memberbebert23:44 28 Sep '03  
GeneralRe: Where are file and folder attributs ??memberdang!16:15 29 Sep '03  
GeneralYou got a 5 from mesupporterTom Welch4:52 9 Sep '03  
GeneralRe: You got a 5 from mememberRavi Bhavnani11:46 27 Sep '03  
GeneralRe: You got a 5 from mememberdang!15:06 28 Sep '03  
GeneralRe: You got a 5 from mememberIramon21:52 21 Dec '03  
GeneralRe: You got a 5 from memember.dan.g.19:24 22 Dec '03  
GeneralHow to incorporate Gilles Vollant's code to for a DLLmembergumber3:26 26 Aug '03  
GeneralRe: How to incorporate Gilles Vollant's code to for a DLLmemberdang!18:16 27 Aug '03  
GeneralRe: How to incorporate Gilles Vollant's code to for a DLLmembergumber22:55 29 Aug '03  
GeneralBuffering?sussAnonymous13:07 23 May '03  
GeneralRe: Buffering?memberDanG16:12 26 May '03  
GeneralSwitching to Cmemberdarkchrono16:43 22 Apr '03  
GeneralRe: Switching to CmemberDanG17:00 22 Apr '03  
GeneralRe: Switching to Cmemberdarkchrono17:17 22 Apr '03  
GeneralRe: Switching to CmemberDanG18: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-2008
Web20 | Advertise on the Code Project