This sample demonstrates how to compress a file using different kinds of compression formats and methods.
Project path: Samples\Visual C++ 6-7\Compress
Project file name: Compress.dsp
Properties: CompressionFormat
Method: WriteFile and ProcessFile
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.