home *** CD-ROM | disk | FTP | other *** search
- unit Sample;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- OleCtrls, XceedZipLib_TLB, StdCtrls;
-
- type
- TfrmSample = class(TForm)
- btGo: TButton;
- xZip: TXceedZip;
- procedure btGoClick(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- frmSample: TfrmSample;
-
- implementation
-
- {$R *.DFM}
-
- procedure TfrmSample.btGoClick(Sender: TObject);
- var
- xErr : xcdError;
- begin
- { This sample code is only intended to show that even if this application
- uses the XceedZip control, the DLL can be registered at run-time just
- before any form that uses the control is displayed }
- xZip.ZipFilename := 'c:\test.zip';
- xZip.FilesToProcess := 'c:\*.sys';
- xZip.ProcessSubfolders := false;
-
- xErr := xZip.Zip;
- ShowMessage( xZip.GetErrorDescription( xvtError, xErr ) );
- end;
-
- end.
-