Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Unzip Password-Protected or WinZip AES Encrypted Zip 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;
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2008 Chilkat Software, Inc. All Rights Reserved.