473,569 Members | 2,870 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The best VB6 solution for ZIP / UNZIP

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)
Jun 18 '07 #1
7 18130
SanjuMtr
47 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)
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.
Jun 18 '07 #2
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)
Jun 18 '07 #3
Killer42
8,435 Recognized Expert Expert
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.
Jun 19 '07 #4
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.
Jun 19 '07 #5
Killer42
8,435 Recognized Expert Expert
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.
Jun 19 '07 #6
Killer42
8,435 Recognized Expert Expert
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)
Jun 19 '07 #7
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.
Jun 19 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2876
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...
1
1836
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...
11
4122
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...
14
1270
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 ?
4
6003
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...
0
1658
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)
5
7033
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
1
8506
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...
2
6370
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.
0
7693
marktang
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...
0
7605
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...
0
7917
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, 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. ...
0
8118
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7665
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...
1
5501
isladogs
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...
0
3651
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...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.