Xceed Streaming Compression Library Documentation
Compress Sample Application for Visual C++
Sample applications > Compress Sample Application for Visual C++

Description

This sample demonstrates how to compress a file using different kinds of compression formats and methods.

Source files

Project path: Samples\Visual C++ 6-7\Compress

Project file name: Compress.dsp

Demonstrates

Properties: CompressionFormat

Method: WriteFile and ProcessFile

How to use

This sample is a console application that takes at least one parameter (the destination file name) to perform compression. The sample's usage description is:

Compress [options] [input_file] output_file

The parameters between brackets are optional. The option parameter can be used to specify the compression format (/m). If the compression format is omitted, the Standard compression format will be used. If the input file name is omitted, the sample will ask the user to type in (from the console) the string to compress.