|
|
How to incorporate ZIP functions into Classic VB Applications
VB Script, or VB6, or VBA are still the dominating office automation languages. It is important to let them be able to use the ZIP utilities too. Please note that .NET Framework may not exist everywhere, so a "native" ZIP COM, not through InterOp, is needed under this condition.
Fortunately there is one for VB.InfoZIP’s Freeware ZIP32.dll and UnZIp32.dll can be wrapped with a library CGZipLibrary.dll. To be able to Zip/Unzip from VB, you will need to: Get these three libraries.Copy zip32.dll and unzip32.dll to c:windowssystem32 directory or c:winntsystem32.Regsvr32 CGZipLibrary.dllTo test, get sample VB6 Project. The sample project will zip the files in current directory to c:ziptest.dll. Be sure to add reference to CGIZipLibrary.dll before you run.
|