12345678910111213141516171819202122 |
- #pragma once
- #include <afx.h>
- #include "..\ZLibWrapLib\ZLib\ioapi.h"
- #include "..\ZLibWrapLib\ZLib\zip.h"
- class CZipFile
- {
- public:
- CZipFile(void);
- ~CZipFile(void);
- public:
- virtual void Open(){
- m_IsZipOpened =TRUE;
- }
- BOOL PutNextEntry(LPCTSTR lpszFileNameInZip, bool bUtf8 = false);
- BOOL Write(void * data,int dataLen);
- virtual void Close();
- protected:
- zipFile zf;//zip信息
- BOOL m_IsZipOpened;
- BOOL m_file_inzip_open;//标记是否正在写入一个文件
- };
|