User forums > General (but related to Code::Blocks)

unzipping files

<< < (2/2)

Game_Ender:
Zlib can handle both zip and gzip files, but the library only handles files, not archives.  If you want to be able to use zlib to handle archives you need to use minizip in the contrib/minizip folder in the zlib distribution.  It comes with 2 example programs minizip, and miniunz.

Don't use wxWidgets here if you have to, it would be way to big for a server.

Matreju:
*grmpf* There is no distri and no mini in my zlib 1.2.3 archive. But i have downloaded it from the zlib website and compiled.

Charon:
you could give physfs a chance too.

its pretty easy to open zip-files with it, although this is not its only purpose to exist.
(actually it implements a virtual filesystem, but this way it gives you the added bonus to enumerate files in a subfolder inside a zip-file and so on)

http://icculus.org/physfs/

Michael:

--- Quote from: Matreju on July 09, 2006, 05:11:45 pm ---No..I dont search a command line utility. I need it for developing in C/C++. A library or something.

Automatic opening and searching zipped datafiles. Extracting the files if data in file hits. A kind of fast precollecor in a processchain.

--- End quote ---

Hello,

May be this could be of some interest:

http://www.7-zip.org/sdk.html

Best wishes,
Michael

Game_Ender:

--- Quote from: Matreju on July 09, 2006, 05:36:27 pm ---*grmpf* There is no distri and no mini in my zlib 1.2.3 archive. But i have downloaded it from the zlib website and compiled.

--- End quote ---

I just downloaded the one from the site and it is there.  Use this link.  Unpack it and you go into the the zlib-1.2.3/contrib/minizip folder.  Have a look at the minizip.c/.h and miniunz.c/.h.

Navigation

[0] Message Index

[*] Previous page

Go to full version