Solved

Extract a file from a Zip file

Posted on 2012-03-22
4
567 Views
Last Modified: 2012-04-01
I have a zip file with some x number of files{only files and no folders}. I need to extract just the first file without unzipping the file and has to be implemented in C++/MFC.


Can some one suggest.
0
Comment
Question by:RsTVS
4 Comments
 
LVL 6

Expert Comment

by:crash2000
ID: 37751340
You could download and install winrar.
That gives you a little more flexibillity when extracting zip files.
It's here http://www.rarlab.com/
0
 
LVL 8

Assisted Solution

by:barrykfl
barrykfl earned 167 total points
ID: 37751369
For freeware u can use 7 zip www.7-zip.org/
0
 
LVL 19

Assisted Solution

by:n2fc
n2fc earned 166 total points
ID: 37751374
Info on zip file format:
http://en.wikipedia.org/wiki/Zip_(file_format)

Public source code reference for zip algorithm(s):
http://docs.bugaco.com/7zip/lzma.txt

http://docs.bugaco.com/7zip/readme.txt
0
 
LVL 7

Accepted Solution

by:
tampnic earned 167 total points
ID: 37762540
I went through this requirement a few months ago - the easiest open-source library I could find to go manipulate a Zip archive was InfoZip. I compile unzip60 as a static library and link the library into my executable.

I found the 7-zip SDK a bit overwhelming for simply unzipping an archive - the InfoZip library was very easy to understand and use. Its written in C but it only took me about an hour to write a C++ wrapper class for easier integration into my project.

http://www.info-zip.org/

Cheers,
   Chris
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now