Solved

How to unzip a .zip file (using C++ builder)

Posted on 2003-11-24
9
1,608 Views
Last Modified: 2008-03-17
Hi, I need to know how can I unzip a file located in C:\Program files\ to this same directory, but I can't have any dialogs being shown during the process.

Cheers
0
Comment
Question by:luizblink182
[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
9 Comments
 
LVL 3

Expert Comment

by:monkesdb
ID: 9815964
you need to get zlib or zziplib. zlib is the full thing whereas zziplib is a thirdparty lightweight alternative

http://www.gzip.org/zlib/
http://zziplib.sourceforge.net/

you should find examples on how to use them on their sites
0
 

Author Comment

by:luizblink182
ID: 9816452
I already tried to use those. No success.
0
 
LVL 2

Expert Comment

by:JensUniweb
ID: 9817345
http://www.info-zip.org/ is another library for zip files.
0
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!

 
LVL 2

Expert Comment

by:JensUniweb
ID: 9817354
gzip and zip are diffrent things. And now zip have there version 9 which is not compatable with the old versions. I don't think info-zip supports zip version 9.
0
 

Author Comment

by:luizblink182
ID: 9818187
I didn't get how to use these libraries.

Can anyone give me the code to extract a zip file into a specified directory? That's all I need.
0
 
LVL 16

Accepted Solution

by:
George Tokas earned 50 total points
ID: 9826273
0
 
LVL 2

Assisted Solution

by:JensUniweb
JensUniweb earned 50 total points
ID: 9830187
Is it realy code you need or how you use them in your enviroment?? What enviroment are you using. Windows, Unix? GCC, VC++, VC .NET, BCB or any other?

Look at this link for some code. Don't know if that helps you.

http://www.stillhq.com/cgi-bin/cvsweb/~checkout~/howto-zlib/example.c?rev=1.1.1.1&content-type=text/plain
0
 
LVL 9

Expert Comment

by:tinchos
ID: 10285803
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Split: gtokas {http:#9826273} & JensUniweb {http:#9830187}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Tinchos
EE Cleanup Volunteer
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

636 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