You are viewing an old version of this page. View the current version.
Compare with Current View Page History
Version 1 Next »
This section describes methods for creates ZIP archive.
Open ZIP archive file.
Syntax:
eqZIP::OpenArchive(m.tcZipName, m.tnAppend)
Parameters:
m.tcZipName
m.tnAppend
Return values
Close ZIP archive file.
eqZIP::CloseArchive(m.tcComment)
m.tcComment
Open file handle.
eqZIP::OpenNewFile(m.tcFileName, m.ttCreated, m.llIWontUTF8, m.lcPassword, m.liCRC32)
m.tcFileName
m.ttCreated
m.llIWontUTF8
A wish uses UTF-8 for encoding file name.
For UTF-8 encoding or password is needy zlib.dll version 1.25 or higher.
m.lcPassword
m.liCRC32
Return values 0 - File append to ZIP archive. -102 - ZIP_PARAMERROR -103 - ZIP_BADZIPFILE -104 - ZIP_INTERNALERROR
Add some file to ZIP archive.
eqZIP::AppendFile(m.tcFilename, m.tcNameInArchive, m.llIWontUTF8, m.lcPassword)
m.tcNameInArchive
m.llIWontUTF8 A wish uses UTF-8 for encoding file name.
Return values -1 - The source file doesn't exists -2 - The source file cannot open 0 - File append to ZIP archive -102 - ZIP_PARAMERROR -103 - ZIP_BADZIPFILE -104 - ZIP_INTERNALERROR
Write data to opened file handle.
eqZIP::WriteData(m.tcData)
m.tcData Data which will be write to file handle.
Return values -102 - ZIP_PARAMERROR -103 - ZIP_BADZIPFILE -104 - ZIP_INTERNALERROR
Close file handle.
eqZIP::CloseFile()
Calculate CRC32 checksum for data.
eqZIP::SYS2007(m.lcData)
m.lcData Data which calculate CRC32 checksum.