Visual C++ Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript



Visual C++ Examples

CkString
Byte Array
Bounced Mail
Character Encoding
Digital Certificates
Digital Signatures
Email
Encryption
FTP
HTML-to-XML
HTTP
IMAP
MHT / HTML Email
RSA Encryption
S/MIME
Socket
Spider
Tar
Upload
XML
XMP
Zip Compression


More Examples...
Email Object
POP3
SMTP
RSS
Atom
Self-Extractor

Unreleased...
Service
PPMD
Deflate
Bzip2
LZW
Bz2
DH Key Exchange
DSA
Icon

 

 

 

 

 

 

 

 

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.

Mail Component · .NET Mail Component · XML Parser