Sample Visual Basic
Code to decompress a ZIP file
Where Cryptocx is an instance of a Cryptocx Control.
''
'' Extract (De-Compress) the specified ZIP file
''
Dim theResult As String
Dim Cryptocx As New EasyByte_Software.Cryptocxv7
Cryptocx.LicenseKey = "DEMO"
Cryptocx.SourceFile = "C:\somefile.zip"
Cryptocx.WorkingFolder = "C:\"
theResult = Cryptocx.ZIPDeCompressZIP
'' Check to see what has happened (if the
de-compression went ok without errors)
''
If theResult = "TRUE" Then
'' Ok, the zip file was de-compressed with no errors
Else
MsgBox theResult
End If
'' Free up Memory Resources
''
Set Cryptocx = Nothing |