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