home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 September / Chip_2002-09_cd1.bin / zkuste / vbasic / Data / Utils / XZipComp.exe / XceedZip.Cab / F112435_Compress.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-03-16  |  1.4 KB  |  57 lines

  1. /*
  2.  * Compress Sample for C++ Builder 4
  3.  *
  4.  * This sample demonstrates the following features:
  5.  *  - Accessing the DLL API from within C++ Builder.
  6.  *  - Compressing and decompressing a memory buffer.
  7.  *
  8.  * This sample is part of the Xceed Zip Compression Library package.
  9.  * Copyright (c) 1999-2001 Xceed Software Inc.
  10.  */
  11.  
  12. #ifndef CompressH
  13. #define CompressH
  14.  
  15. #include <Classes.hpp>
  16. #include <Controls.hpp>
  17. #include <StdCtrls.hpp>
  18. #include <Forms.hpp>
  19. #include "XceedZipAPI.h"
  20.  
  21. // If you have the registered version of Xceed Zip, insert your license string
  22. // in the following definition
  23. #define YOUR_LICENSE_STRING ""
  24.  
  25. class TfrmCompress : public TForm
  26. {
  27. // IDE-managed Components
  28. __published:
  29.   TLabel *Label1;
  30.   TLabel *Label2;
  31.   TMemo *mmoSource;
  32.   TButton *btCompress;
  33.   TMemo *mmoDest;
  34.   TComboBox *cbMethod;
  35.   TLabel *Label3;
  36.   TComboBox *cbLevel;
  37.   TLabel *Label4;
  38.   TLabel *Label5;
  39.   TLabel *Label6;
  40.   void __fastcall btCompressClick(TObject *Sender);
  41.   void __fastcall FormCreate(TObject *Sender);
  42.  
  43. private:
  44.   // This is the handle to the loaded XceedZip.dll file
  45.   HANDLE m_hXceedZipDll;
  46.   // This points to all exported XceedZip.dll functions
  47.   XceedZipFunctions*  m_psExportedApi;
  48. public:        // User declarations
  49.   __fastcall TfrmCompress( TComponent* Owner );
  50.   __fastcall ~TfrmCompress( void );
  51. };
  52.  
  53. extern PACKAGE TfrmCompress *frmCompress;
  54.  
  55. #endif
  56.  
  57.