Click to See Complete Forum and Search --> : New Article Added - Zip/Unzip classes for VB5/6


Chris Eastwood
August 2nd, 1999, 11:04 AM
Hi all

I've just finished working on an ActiveX DLL that utilises the FreeWare Zip32.DLL and Unzip32.DLL files available from http://www.cdrom.com/pub/infozip.

The code in my article wraps the functionality of these C DLL's and makes them more 'VB-Readable', so your Zip/Unzip code end's up looking like :


Dim oZip as CGZipFiles

set oZip = new CGZipFiles

oZip.ZipFileName = "\MyZip.Zip"
oZip.AddFile "c:\mystuff\myfiles\*.*"
oZip.AddFile "c:\mystuff\mymedia\*.wav"

If oZip.MakeZipFile <> 0 then
MsgBox oZip.GetLastMessage
End If

set oZip = nothing





The article contains all the files you need for handling Zip and Unzip operations :

http://www.codeguru.com/vb/articles/1854.shtml

Enjoy !



Chris Eastwood

CodeGuru - the website for developers
http://www.codeguru.com/vb