?
Solved

Extract a file from a Zip file

Posted on 2012-03-22
4
Medium Priority
?
585 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 501 total points
ID: 37751369
For freeware u can use 7 zip www.7-zip.org/
0
 
LVL 20

Assisted Solution

by:n2fc
n2fc earned 498 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 501 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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 goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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…

771 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