UnZipFile.h 411 B

123456789101112131415161718192021
  1. #pragma once
  2. #include "..\ZLibWrapLib\ZLib\unzip.h"
  3. #include <afx.h>
  4. class CUnZipFile
  5. {
  6. public:
  7. CUnZipFile(void);
  8. ~CUnZipFile(void);
  9. CUnZipFile(LPCTSTR fileName);
  10. BOOL GetNextEntry(CString & strFileName);
  11. int Read(void * buffer,int bufferSize);
  12. void Close( );
  13. BOOL HasMoreEntry();
  14. protected:
  15. unzFile uf;
  16. int m_nCurrentEntryNum;
  17. int m_nEntryNum;
  18. BOOL m_bIsCurrentFileOpened;
  19. BOOL m_bIsZipOpened;
  20. };