Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Unzip a Zip File in C++
Demonstrates how to unzip the contents of a Zip. // Visual C++ Example Source Code to Unzip a Zip file
//
#include "stdafx.h"
#include "CkZip.h"
#include "CkZipEntry.h"
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// Unlock the Zip product.
// This only needs to be done once when the first CkZip object
// is instantiated.
CkZip zip;
zip.UnlockComponent("unlockCode");
// Open a Zip file and Unzip it. All subdirectories
// are automatically created.
zip.OpenZip("tree.zip");
zip.Extract(".",0);
zip.CloseZip();
return 0;
}
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2008 Chilkat Software, Inc. All Rights Reserved.