473,385 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

zlib question ...

Hi,

Not sure if this is a proper ng to post this question.

Is here anybody who has used zlib? I downloaded 1.2.1 of zlib from
www.gzip.org/zlib (for windows 98/nt/2000/xp), and used it in my program to
zip/unzip files. When I use the zipper class in zlib to zip a folder, I got
a zip file with the SAME SIZE of zip file created (on the same folder) with
the 'ZipTest' program downloaded from the site. But the problem is that the
zip file created with my program can't be opened by WinZip - it showed the
empty dialog, and 'Extract' 'View' and 'Checkout' button in the dialog are
disabled; while the one created by 'ZipTest' can be opened (and extracted)
by WinZip.

Anybody got idea what's wrong with my zip file?

Thanks,
Peter


Jul 22 '05 #1
4 1854
On Tue, 6 Jan 2004 17:11:35 -0800, "Peter" <ya*******@ncr.com> wrote
in comp.lang.c++:
Hi,

Not sure if this is a proper ng to post this question.

Is here anybody who has used zlib? I downloaded 1.2.1 of zlib from
www.gzip.org/zlib (for windows 98/nt/2000/xp), and used it in my program to
zip/unzip files. When I use the zipper class in zlib to zip a folder, I got
a zip file with the SAME SIZE of zip file created (on the same folder) with
the 'ZipTest' program downloaded from the site. But the problem is that the
zip file created with my program can't be opened by WinZip - it showed the
empty dialog, and 'Extract' 'View' and 'Checkout' button in the dialog are
disabled; while the one created by 'ZipTest' can be opened (and extracted)
by WinZip.

Anybody got idea what's wrong with my zip file?

Thanks,
Peter


Yes, there's a bug in your code on line 42.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Jul 22 '05 #2
Jack Klein wrote:
On Tue, 6 Jan 2004 17:11:35 -0800, "Peter" <ya*******@ncr.com> wrote
[redacted]
Yes, there's a bug in your code on line 42.

Nah. I think it's on 47.

Jul 22 '05 #3
Peter wrote:
When I use the zipper class in zlib to zip a folder, I got
a zip file with the SAME SIZE of zip file created (on the same folder) with
the 'ZipTest' program downloaded from the site.
I can't find any "zipper" class in zlib, nor can I find ZipTest.
But the problem is that the
zip file created with my program can't be opened by WinZip - it showed the
empty dialog, and 'Extract' 'View' and 'Checkout' button in the dialog are
disabled; while the one created by 'ZipTest' can be opened (and extracted)
by WinZip.


zlib only implements the zip inflate and deflate algorithms, not zip
file archives. To make actual zip files, look at the code in
contrib/minizip.
Jul 22 '05 #4
On Tue, 6 Jan 2004 17:11:35 -0800, "Peter" <ya*******@ncr.com> wrote:
Hi,

Not sure if this is a proper ng to post this question.


No ... try comp.compression instead.
--
Bob Hairgrove
No**********@Home.com
Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Alan Toppen | last post by:
I was unable to use the ZipFile class in the zipfile module in Python2.4. I got an error that zlib could not be found. Comparing my Python 2.2 installation I noticed Python 2.4 was missing a...
0
by: Tony | last post by:
Hello, Any assistance would be appreciated: As the subject suggests I am trying to gunzip files using the Compress::Zlib module. The following is basically the code that I am working with: ...
6
by: Laszlo Zsolt Nagy | last post by:
Sorry, I realized that the import zlib was not executed from my (working) service. So here is the question: why can't I use zlib from a win32 service? Is there any way to make it working? ...
1
by: Andreas Lobinger | last post by:
Aloha, is a pure _python_ implementation of the zlib available? I have broken zlib streams and need to patch the deocder to get them back. Wishing a happy day LOBI
1
by: Dennis Powell | last post by:
Does anyone have a successful implementaion of the zlib.dll in VB. Net they can show me. I'm writting a class encaplsulating zlib functionality and I keep getting a System.NullReferenceException...
4
by: shamzz | last post by:
Hi, I've compiled (configure/make/make install) Python 2.4.4 from source on Suse Linux Enterprise Server 9 (x64). I need Python to be compiled with Zlib so that I can compile and use Zope. ...
3
by: stuntgoat | last post by:
import zlib works in Python 2.4 (debian etch AMD64 - default python version for that distro) I built python 2.5 from source; zlib is not importable. I am trying to compile MySQLdb. any...
1
by: mhearne808[insert-at-sign-here]gmail[insert-dot-he | last post by:
I can't seem to get the zlib module to build on an RHEL box. I did the following: 1) Download zlib 1.2.3 2) configure;make;make install 3) Download python 2.5.2 4) configure;make;make install...
4
by: MZ | last post by:
Hello! I`ve tried to instal zlib library to use zip functions to pack files into zip archive. I don`t know how I have to configure zlib to make it work. I have built up php.ini file and...
2
by: rajevar | last post by:
hi, i have seen various post related to this topic but i couldnt resolve my issue yet. Im using python version 2.5 on Linux environment this is the error im getting if i try to import zlib ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.