home *** CD-ROM | disk | FTP | other *** search
- /*
- * Compress Sample for C++ Builder 4
- *
- * This sample demonstrates the following features:
- * - Accessing the DLL API from within C++ Builder.
- * - Compressing and decompressing a memory buffer.
- *
- * This sample is part of the Xceed Zip Compression Library package.
- * Copyright (c) 1999-2001 Xceed Software Inc.
- */
-
- #ifndef CompressH
- #define CompressH
-
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include "XceedZipAPI.h"
-
- // If you have the registered version of Xceed Zip, insert your license string
- // in the following definition
- #define YOUR_LICENSE_STRING ""
-
- class TfrmCompress : public TForm
- {
- // IDE-managed Components
- __published:
- TLabel *Label1;
- TLabel *Label2;
- TMemo *mmoSource;
- TButton *btCompress;
- TMemo *mmoDest;
- TComboBox *cbMethod;
- TLabel *Label3;
- TComboBox *cbLevel;
- TLabel *Label4;
- TLabel *Label5;
- TLabel *Label6;
- void __fastcall btCompressClick(TObject *Sender);
- void __fastcall FormCreate(TObject *Sender);
-
- private:
- // This is the handle to the loaded XceedZip.dll file
- HANDLE m_hXceedZipDll;
- // This points to all exported XceedZip.dll functions
- XceedZipFunctions* m_psExportedApi;
- public: // User declarations
- __fastcall TfrmCompress( TComponent* Owner );
- __fastcall ~TfrmCompress( void );
- };
-
- extern PACKAGE TfrmCompress *frmCompress;
-
- #endif
-
-