The Zip Manager Sample Application for C++ Builder 4 and up can be found in:
SAMPLES\C++ BUILDER 4-5\ZIPMANAGER
SAMPLES\C++ BUILDER 6\ZIPMANAGER
The sample includes fully commented source code which complement the examples available in the online help, but in the context but in the context of a real application, not specific examples designed exclusively to demonstrate each method. We propose that you dive right into the sample's source code and take a look.
The Zip Manager Sample Application is a Windows program that allows you to manipulate zip files. By looking at the source code, you will find out how to zip, unzip, delete files, update and test files in a zip file using the Xceed Zip Compression Library v5.0 control. You will also see how event handlers are written for different events.
To use the sample, load the ZIPMANAGER.BPR project file, then run the program.
The program works in a similar fashion to WinZip™. The main listbox displays the current contents of the opened zip file at all times. The status bar below the main listbox indicates what is currently happening during any zip file operation. For example, when zipping files, it will display the name of each file as it is being zipped. To the right of the status bar is a progress bar that shows you the progress of the current operation. When you are zipping tens of thousands of files, it might take a while before the progress bar starts to show the progress, because the library is scanning the drive to obtain the total number of files you will be zipping – and this can take a few seconds.
The source code for this sample application is fully commented. Registered users of Xceed Zip Compression Library can use this sample application, or portions of it, in their own commercial or private applications, royalty-free.