home *** CD-ROM | disk | FTP | other *** search
- //---------------------------------------------------------------------------
- #ifndef unMainH
- #define unMainH
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include "XceedStreamingCompressionLib_OCX.h"
- #include <OleCtrls.hpp>
- //---------------------------------------------------------------------------
- class TfrmMain : public TForm
- {
- __published: // IDE-managed Components
- TLabel *Label1;
- TLabel *Label2;
- TLabel *Label4;
- TLabel *Label5;
- TLabel *Label6;
- TLabel *Label3;
- TLabel *lblOrigSize;
- TLabel *lblCompressedSize;
- TLabel *lblDecompressedSize;
- TMemo *mmoTextToCompress;
- TMemo *mmoDecompressedText;
- TComboBox *cboCompressionFormats;
- TButton *btCompress;
- TButton *btDecompress;
- void __fastcall mmoTextToCompressChange(TObject *Sender);
- void __fastcall btCompressClick (TObject *Sender);
- void __fastcall btDecompressClick (TObject *Sender);
- private:
- // These member variables will contain our compressed data as well as the
- // size of the compressed data. They will be used in the call to the Compress
- // method as well as in the call to the Decompress method.
- BYTE* m_pcCompressed;
- DWORD m_dwCompressedSize;
-
- // Our instance of the Xceed Streaming Compression Library
- IXceedStreamingCompressionPtr m_piStreamComp;
-
- void PrepareFormat( int nFormat );
- void FreeBuffer();
- public: // User declarations
- __fastcall TfrmMain(TComponent* Owner);
- __fastcall ~TfrmMain();
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TfrmMain *frmMain;
- //---------------------------------------------------------------------------
- #endif
-