Visual C++ Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

C++ Examples

CkString
Byte Array
Bounced Mail
Bz2
Character Encoding
CSV
DH Key Exchange
DKIM/DomainKeys
Digital Certificates
Digital Signatures
DSA
Email
Email Object
Encryption
FTP
HTML Conversion
HTTP
IMAP
MHT / HTML Email
POP3
RSA
S/MIME
SMTP
Socket
Spider
SSH Key
SSH
SSH Tunnel
SFTP
Tar
Upload
XML
XMP
Zip Compression


More Examples...
Amazon S3
NTLM
FileAccess
RSS
Atom
Self-Extractor
Service
PPMD
Deflate
Bzip2
LZW

 

 

 

 

 

 

 

 

Create a Self-Extracting Executable

Downloads:

MS Windows Visual C/C++ Libraries
Linux/CentOS C/C++ Libraries
MAC OS X C/C++ Libraries
Solaris C/C++ Libraries
C++ Builder Libraries

Creates a self-extracting executable.

// Visual C++ Example Source Code to create a self-extracting executable.
//

#include "stdafx.h"

#include "CkZip.h"
#include "CkZipEntry.h"

int APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR     lpCmdLine,
                     int       nCmdShow)
{
    // Unlock the Zip compression product.
    // This only needs to be done once when the first CkZip object
    // is instantiated.
    CkZip zip;
    zip.UnlockComponent("unlockCode");

    // Create a new Zip and append files and directories recursively.
    zip.NewZip("myZip.zip");
    zip.AppendFiles("./Tree/*",true,0);

    // The self-extracting EXE can be created to automatically run
    // an EXE contained within it immediately after extracting.
    // zip.put_AutoRun("setup.exe");

    // If AutoTemp is true, the self-extracting EXE will not prompt
    // for an unzip directory, but will instead automatically
    // select (and create) a temp directory for unzipping.
    // zip.put_AutoTemp(true);

    // The self-extracting EXE can be created with encryption.
    // Valid values are: 
    // 0 = none, 1 = blowfish, 2 = twofish, 3 = rijndael (AES). 
    // zip.put_Encryption(1);
    // zip.SetPassword("myPassword");

    // NOTE: The PasswordProtect property is separate from the AES encryption
    // property.  PasswordProtect is for standard Zip password protection,
    // which is an encryption scheme that is somewhat easy to break.

    // Now create a self-extracting EXE
    zip.WriteExe("myZip.exe",0);
    zip.CloseZip();

    return 0;
}

 

 

 

© 2000-2010 Chilkat Software, Inc. All Rights Reserved.

Mail Component · .NET Mail Component · XML Parser