How to extract .zip .7z files using c++ ???

Oct 7, 2013 at 6:28pm
closed account (3hMz8vqX)
Hi all,
How to extract .zip .7z files using c++ ???
Please help:)
Thankyou everyone in advance!!! :)
Please dont abandon this question...
I will be constantly updating this until it is solved!!!
Please help me everyone!!!
Regards,
Aravind.
Oct 7, 2013 at 9:33pm
closed account (Dy7SLyTq)
http://lmgtfy.com/?q=compression+tutorial+in+c%2B%2B
Oct 8, 2013 at 10:59am
Zip-utils, it only works with zip but is easy to use:

http://www.codeproject.com/Articles/7530/Zip-Utils-clean-elegant-simple-C-Win32
Oct 8, 2013 at 8:37pm
My contribution to this thread (with its list of sites), along with the other posts (of course), might be of use?

Working with zip and similar files
http://www.cplusplus.com/forum/general/104349/#msg563948

Andy

PS You should try searching this site first; you are re-asking question that others have asked before.

(And beware, you might find pushing people for answers backfires on you!!)
Last edited on Oct 8, 2013 at 8:38pm
Oct 14, 2013 at 8:24pm
closed account (3hMz8vqX)
Okay,
you guys are suggesting libraries...
Thats good...
so, can anyone show me how to do this from scratch?
I mean without any API?
I know thats hard but,
Please help:)
Thankyou everyone in advance!!! :)
Oct 14, 2013 at 8:54pm
You would need to look up the file formats and compression algorithms.
Oct 14, 2013 at 9:11pm
You can find source code for 7 zip here:
http://7-zip.org/download.html

Within the source code, you'll find the compression algorithms used for the 7z LZMA format amongst various other compression formats.
Oct 14, 2013 at 9:19pm
In practice I would use one of the solid, well-tested libraries rather than going to the trouble of re-coding the wheel myself.

But Catfish3 has written an article about LZW compression, if you want to learn how that algorithms works.

LZW file compressor
http://www.cplusplus.com/articles/iL18T05o/

Andy
Last edited on Oct 14, 2013 at 9:20pm
Topic archived. No new replies allowed.