Skip Navigation Links
Skip Navigation LinksHome > ZipArchive > How to Use > Article
Sample Applications that Demonstrate Usage of the ZipArchive Library
Applies To: All
The sample applications available with the ZipArchive Library demonstrate most of its features.

ZipArc - MFC Application

ZipArc uses the ZipArchive Library in the MFC version.

Main Features

  • multithreaded - you can work with many zip files at one time
  • MDI application
  • shell integration (previous system settings will be restored on uninstallation)
  • drag & drop support
  • detailed error reports
  • you can open and modify SFX archives

Compilation

CMake (Recommended)

Build ZipArc using CMake with the BUILD_ZIPARC option. This is only available on Windows as ZipArc is an MFC application.

Configure and build:
cmake --preset windows-unicode-mfc-md -DBUILD_ZIPARC=ON
cmake --build --preset windows-unicode-mfc-md --config Release

The executable will be located in build/<preset-name>/bin/ZipArc.exe

Note: ZipArc requires MFC, so use an MFC preset like windows-unicode-mfc-md or windows-unicode-mfc-mt.

Microsoft Visual Studio

Use the provided solution or project files and make sure the ZipArc and the ZipArchive directories are in the same subdirectory.

Zippie - STL Application

Zippie is a command line application which can be compiled under Windows, Linux and macOS.

Compilation

CMake (Recommended)

Build Zippie using CMake with the BUILD_ZIPPIE option. Works on Windows, Linux, and macOS.

Linux/macOS:
cmake --preset linux-utf8 -DBUILD_ZIPPIE=ON
cmake --build --preset linux-utf8 --config Release

Windows:
cmake --preset windows-unicode-stl-md -DBUILD_ZIPPIE=ON
cmake --build --preset windows-unicode-stl-md --config Release

The executable will be located in build/<preset-name>/bin/zippie (or zippie.exe on Windows).

Note: Zippie requires STL, so on Windows use an STL preset like windows-unicode-stl-md or windows-unicode-stl-mt.

Microsoft Visual Studio

Use the provided solution or project files and make sure the Zippie and the ZipArchive directories are in the same subdirectory. Use one of the STL configurations (Visual Studio .NET) for compilation.

C++Builder

  • Create a new Console Application project.
  • Add all the Zippie source files to the project.
  • Make sure only one main() method is defined.
  • To link to the ZipArchive Library, you can uncomment the #pragma comment definitions near to the top of the zippie.cpp.
  • Compile the project.
  • Instead of having two separate projects, you can also try adding all the ZipArchive and Zippie sources to a single Console Application project.
Article ID: 0610051434
Back To Top Up