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

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.
closed account (Dy7SLyTq)
http://lmgtfy.com/?q=compression+tutorial+in+c%2B%2B
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
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
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!!! :)
You would need to look up the file formats and compression algorithms.
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.
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
Topic archived. No new replies allowed.