dima69 181
Recognized Expert New Member
I'm looking for the solution to Zip / Unzip files in VB6 / VBA.
I've searched the web and found several solutions (zlib.dll, Info-Zip, DynaZip, PKZip, ...). The question is which one is the best ?
My considerations are:
1. The solution must be simple, general and robust (be able to unzip all standard zip files, run on all Win platforms).
2. The solution must be based on standard DLL (not OCX, not command-prompt EXE)
3. No extra features required (password protection, multiple volumes, SFX)
7 18130
I'm looking for the solution to Zip / Unzip files in VB6 / VBA.
I've searched the web and found several solutions (zlib.dll, Info-Zip, DynaZip, PKZip, ...). The question is which one is the best ?
My considerations are:
1. The solution must be simple, general and robust (be able to unzip all standard zip files, run on all Win platforms).
2. The solution must be based on standard DLL (not OCX, not command-prompt EXE)
3. No extra features required (password protection, multiple volumes, SFX)
you can use Pkzip/Pkunzip ...I have use it & its works fine.I gave the sample code for this earlier.for further information plz check my threads.
dima69 181
Recognized Expert New Member
you can use Pkzip/Pkunzip ...I have use it & its works fine.I gave the sample code for this earlier.for further information plz check my threads.
Thanks, I've seen this thread, but I'me looking for another solution (see post #1 para. 2)
Thanks, I've seen this thread, but I'me looking for another solution (see post #1 para. 2)
the answer might depend a bit on what you mean by " all Windows platforms". Since WinXP has built-in zip file handling (never mind how good or bad the interface), it should be possible to find a a way to tap into that. But I imagine a Windows 3.0 PC might have a problem with that.
dima69 181
Recognized Expert New Member
the answer might depend a bit on what you mean by "all Windows platforms". Since WinXP has built-in zip file handling (never mind how good or bad the interface), it should be possible to find a a way to tap into that. But I imagine a Windows 3.0 PC might have a problem with that.
Well, I think that the reasonable assumption would be to require Windows 98 and above.
Well, I think that the reasonable assumption would be to require Windows 98 and above.
Fair enough. I can't remember - does Win98 handle zip files ("compressed folders") itself? Or was that introduced later? If later, then that's obviously not an option.
By the way, I did a little hunting on the web. Here are some links that may be of interest, with the original descriptions (I didn't write them)... - Info-ZIP's ZIP libraries
Info-ZIP's purpose is to "provide free, portable, high-quality versions of the Zip and UnZip compressor-archiver utilities that are compatible with the DOS-based PKZIP by PKWARE, Inc." - and they do an excellent job at it. Download their free Zip and Unzip DLLs here. - Zlib
zLib is a "A Massively Spiffy Yet Delicately Unobtrusive Compression Library (Also Free, Not to Mention Unencumbered by Patents)" [ahem - that really is how the authors introduce it!] The compression algorithm used is essentially the same as used in PKZip and gzip. This is the home page for the algorithm with C code and specifications; however if you want to use it in VB, then go to: - Mark Nelson's OCX for ZLib
A nice, free, fully working OCX providing access to Zlib compression and decompression. MFC source code is included. Recommended! - www.info-zip.org
This last one definitely seems worth a look (Killer42) dima69 181
Recognized Expert New Member
Thanks a lot to Killer for the detailed reply.
For now, I am implementing the ZLib.dll, based on the example given on Paradoxes.info
From my point of view, the advantages of zlib are:
1. Single and relatively small dll, for both compression and extraction.
2. Very liberal license, sutable for commercial use.
The disadvantages: VB implementation is not straight-forward, file handling is not included in dll, only the base data compression and decompression.
I'd be glad to see any additional comments on this.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: steve |
last post by:
Hi,
I finally figured out the best way to synch local and remote script
folders, containing many php script files.
What I used to do before was try to ftp all the changed files, etc.
which was tedious and often broke. It was also very slow.
What I do now is to pkzip the folder up, ftp the pkzip’ed data to
remote, and then unzip it...
|
by: Jean Christophe Avard |
last post by:
Hi! Finally I figure out what was wrong... "objZipEntry.size = strmFile" I wasn't giving the right file length... But now, I have issue with the unzip function... I can't unzip it, the unzip function return true but its invalid parameter when I try to set the image to the picture box....
Private Overloads Function Unzip(ByVal strSource As...
|
by: kiln |
last post by:
I am starting a project that may be suitable for vb.net, using windows
forms. I want a rich client, thus win forms vs web forms. Most users
will access the app data over a LAN, but some will be remote users,
accessing via vpn. I could use terminal services for this but am
thinking that an alternate technology like remoting or web servies could...
|
by: ucasesoftware |
last post by:
What is the best way to download the application ?
Zip ? Cab ?
What is the solution to make a .exe and after dw it automaticly extract
and install the application ?
|
by: DataSmash |
last post by:
I need to unzip all zip file(s) in the current directory
into their own subdirectories. The zip file name(s) always
start with the string "usa" and end with ".zip".
The code below will make the subdirectory, move the zip
file into the subdirectory, but unzips the contents into the
root (current) directory. I want the contents of the zip...
| |
by: Rocky Zhou |
last post by:
python unzip
At first, I tried to use 'os.popen3("unzip ...") like this:
fin, fout, ferr = os.popen3("unzip -o -d %s %s" % (dest, zipfile))
strerr = ferr.read()
# This makes the program hanging up
if strerr:
print >sys.stderr, strerr
outlog.error(strerr)
|
by: =?Utf-8?B?anVsaW8=?= |
last post by:
Hi,
I write a program to unzip a Tar file generated on a Unix environment file
using SharpZipLib, but returns a error "Header checksum is invalid" when
execute the program.
This error appears when I try to extract the files.
Can any help me where is a sample to unzip a tar file
TIA
Julio
|
by: olddocks |
last post by:
I want to upload a zip file and then extract/unzip it. I am accomplishing this with php exec command. I am calling unzip from php exec command within a php script and it is not extracting files. why?
<?php
echo exec('unzip file.zip');
?>
i checked apache logs and it says
It works perfectly fine when i unzip using SSH command line..
how...
|
by: somsub |
last post by:
Hi all,
Here is my samle code
use strict ;
use warnings ;
use IO::Uncompress::Unzip ;
When I compiled this three lines of code in win32 I got error like below.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |