Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
Unzip Password-Protected or WinZip AES Encrypted ZipDownloads: MS Windows Visual C/C++ Libraries Linux/CentOS C/C++ Libraries MAC OS X C/C++ Libraries Solaris C/C++ Libraries C++ Builder Libraries C++ example showing how to unzip an encrypted zip. // Unzip password-protected or WinZip AES strong encrypted zips.
// Simply set the password prior to opening the zip.
CkZip zip2;
zip2.UnlockComponent("Anything for 30-day trial");
zip2.SetPassword("test");
bool success = zip2.OpenZip("myZip.zip");
if (!success)
{
zip2.SaveLastError("lastError.txt");
return;
}
// Unzip into the "abc" subdirectory
int numFilesUnzipped = zip2.Unzip("abc");
if (numFilesUnzipped < 0)
{
zip2.SaveLastError("lastError.txt");
return;
}
return;
|
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.