Solved

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

Posted on 2003-11-24
9
1,511 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
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Building cUrl in Windows v7.43.0 4 32
Implementing a ResolveEventHandler in C++ 13 133
What does std::atomic give me? 7 125
Microsoft C++ code failing in executable that worked 9 100
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…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

803 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