XZipZilb.h 531 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef RVC_MOD_UPLOAD_XZIP_ZLIB_H_
  2. #define RVC_MOD_UPLOAD_XZIP_ZLIB_H_
  3. #include "SpBase.h"
  4. #ifdef RVC_OS_WIN
  5. #define ZLIB_WINAPI //win32 必须使用的宏
  6. #endif
  7. #include "zip.h"
  8. #include "unzip.h"
  9. #include <iostream>
  10. #include <stdio.h>
  11. #include <string>
  12. using namespace std;
  13. bool CreateZipFromFile(string srcFileName, string zipFileName);
  14. bool AddFileToZip(zipFile zf, const char* fileNameInZip, const char* srcFile);
  15. //获取文件长度 完成
  16. long GetFileLen(FILE* _file);
  17. #endif //RVC_MOD_UPLOAD_XZIP_ZLIB_H_