ActiveZip ActiveX 2.0 » Developer.Team - Developers Paradise!

ActiveZip ActiveX 2.0

ActiveZip ActiveX 2.0
ActiveZip ActiveX 2.0 | 379 kB


ActiveZip for ActiveX lets you add high-speed, reliable, zip/unzip functionality to your applications regardless of whether you are manipulating files or memory. The comfortable object oriented class structure will allow you to work quickly and easily regardless of your project's complexity.

Compression sample
Private Sub Command1_Click()
    ' create the ActiveZip instance
    Dim myZipFile As New ActiveZIP.ZIPFile
    ' create a new zip-item 'mynameinzip.txt' and fill content by 'c:\test.txt'
    myZipFile.AddItem("mynameinzip.txt").LoadFromFile "C:\test.txt"  
    ' create a new zip-item and fill content by memory
    myZipFile.AddItem("mynameinzip2.txt").Content = "content for 'mynameinzip2.txt'"  
    ' save the new archive to the filesystem
    myZipFile.SaveToFile "C:\test.zip"  
End Sub


Decompression sample
Private Sub Command2_Click()
    Dim myZipFile As New ActiveZIP.ZIPFile  
    myZipFile.LoadFromFile "C:\test.zip"  
    MsgBox myZipFile.Item(0).FileName  
End Sub


Little more complex sample
Private Sub Command3_Click()
    Dim myZipFile As New ActiveZIP.ZIPFile  
    myZipFile.LoadFromFile "C:\test.zip"  
    MsgBox myZipFile.Item(0).FileName  
End Sub


The ZIPFile class

Function AddItem(FileName As String) As ZIPItem
Sub Cancel()
Property CaseSensitive As Boolean
Event Compression(FileName As String, TotalSize As Long, CurrentSize As Long)
Event Decompression(FileName As String, TotalSize As Long, CurrentSize As Long)
Property DoEvents As Boolean
Property FileName As String
Function IsCanceled() As Boolean
Property Item(Index As Long) As ZIPItem
Property ItemCount As Long
Function LoadFromFile(FileName As String) As Boolean
Function RemoveItem(Index As Long) As Boolean
Function SaveToFile(FileName As String) As Boolean

The ZIPItem class

Property Comment As String
Property CompressedSize As Long
Property CompressionLevel As Long
Property CompressionMethod As Compression
Property Content As String
Property FileDate As Date
Property FileName As String
Property IsEncrypted As Boolean
Function LoadFromFile(FileName As String, [CacheContent As Boolean = Falsch]) As Boolean
Property Password As String
Function SaveToFile(FileName As String, [CacheContent As Boolean = Falsch]) As Boolean
Property UncompressedSize As Long

Unique selling point

Zip files or memory buffers into new or existing zip files.
Unzip files to disk or directly to memory.
Compress and decompress strings or buffers completely in memory.
Update one zip file from another one's contents or merge two zip files together.
All operations can be aborted at any time.
Provides status report events on a file-by-file basis with percentages, byte, and file counts.
Easily add any kind of progress bar to your apps through the transparent structure.
AES encryption/decryption provides 256-bit military-grade data security.
An optimized algorithm improves compression speeds by up to 300% over the competition.
Fast, low memory usage compression engine.

Major operations

WinZip, PKZIP, and UNIX gzip compatible.
Supports WinZip 9.0 (and up) compatible AES strong encryption.
Includes a royalty-free license.
ActiveZip control adds high-speed, reliable zip and unzip capabilities to any application.
Notifies your application when and why a specific file cannot be processed.
Provides complete file information for the file currently being processed.

ActiveX technology:

A single fully self-contained COM object and ActiveX control written with ATL 3.0.
Requires no external compression DLLs, MFC DLLs, or runtime libraries.
Both single-threaded (STA) and multi-threaded apartment (MTA) model design.
Instantiate the component dynamically without putting it on a form.
Supports multiple instances running simultaneously.
ActiveX control interface has all constants, enumerations, and types built-in.
Works with all 32-bit development environments that can use ActiveX controls.

Only for V.I.P
Warning! You are not allowed to view this text.