压缩组件

发布于 2024-12-05 02:09:13 字数 863 浏览 2 评论 0原文

我正在寻找一个支持 Delphi2010 的压缩组件,并允许我执行以下基本操作:

  • 创建 .zip 档案
  • 从 .zip 档案中提取
  • 删除 .zip 档案

我还需要该组件免费用于商业用途,并且可能不使用/依赖于 DLL(我不介意它是否依赖)。

到目前为止,我已经研究了 ZipForgeZipForge。 com/compression_component_compression_delphi_encryption_delphi_flexcompress.htm" rel="nofollow">FlexCompress, KaZipUnRAR,但我发现我需要购买许可证才能将 ZipForge 和 FlexCompress 用于商业用途。当谈到KaZip时,代码中有错误,所以我安装该组件不成功。而 UnRAR 就是这样;它仅解压缩 .zip 或 .rar 档案。

所以总而言之,我需要一个压缩组件:

  • 免费用于商业用途
  • 支持Delphi 2010
  • 执行上述操作
  • 不使用DLL(但是,我不介意)

I am looking for a compression component that supports Delphi2010 and allow me to do the basic operations of:

  • create .zip archives
  • extract from .zip archives
  • delete .zip archives

I also need the component to be free for commercial usage and possibly does not use/rely on a DLL (I don't mind if it does).

So far I have looked into ZipForge, FlexCompress, KaZip and UnRAR, but I found out that I needed to purchase a license to commercially use ZipForge and FlexCompress. When it came to KaZip, there were errors in the code so I was unsuccessful in terms of installing the component. Whereas UnRAR was just that; it only decompressed .zip or .rar archives.

So In summary, I need a compression component that:

  • is free for commercial use
  • supports Delphi 2010
  • performs the above stated operations
  • does not use DLLs (however, I do not mind)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

年华零落成诗 2024-12-12 02:09:13

Abbrevia 将很好地满足您的目的。

Abbrevia will serve your purposes nicely.

病毒体 2024-12-12 02:09:13

JCL 为这两个文件提供了一组很好的压缩类(即常见的存档格式)以及 jcl 压缩单元中的内存内容(TStream)。对于某些需要 DLL 的格式,它使用 7zip 之一。但它是开源且免费的(MPL / LGPL)。

The JCL has a nice set of compression classes for both files (ie common archive formats) and for in memory stuff (TStreams) in jclCompression unit. For some formats it requires DLL, it uses 7zip one. But it is open source and free (MPL / LGPL).

乄_柒ぐ汐 2024-12-12 02:09:13

看一下这个开源SynZip 单元。它的解压速度比 Delphi 附带的默认单元更快,并且会生成更小的 exe(crc 表在启动时创建)。

为了删除 zip 内容,您可以混合使用 TZipWriter 和 TZipReader 来仅复制 zip 中所需的存档文件。

不需要外部 dll。代码开销非常小。适用于 Delphi 6 到 XE(简称 XE2)。

我只是做了一些更改来处理 Zip 内容中的 Unicode 文件名,不仅是 Win-Ansi 字符集,还包括任何 Unicode 字符。

Take a look at this OpenSource SynZip unit. It's even faster for decompression than the default unit shipped with Delphi, and it will generate a smaller exe (crc tables are created at startup).

In order to delete a zip content, you can mix TZipWriter and TZipReader to copy only the needed archived files inside the zip.

No external dll is needed. Very small code overhead. Works from Delphi 6 to XE (shortly for XE2).

I just made some changes to handle Unicode file names inside Zip content, not only Win-Ansi charset but any Unicode chars.

咆哮 2024-12-12 02:09:13

我们使用 ZipMaster

需要 DLL,适用于 2010。

We use ZipMaster.

Needs a DLL, works with 2010.

罗罗贝儿 2024-12-12 02:09:13

还有一个围绕 7zip dll 构建的组件(alpha 阶段,但支持 D7 到 D2010):

http://www.rg-software.de/rg/index.php?option=com_content&view=article&id=29&Itemid=51

There is also this component build around 7zip dll (alpha stage, but support for D7 to D2010):

http://www.rg-software.de/rg/index.php?option=com_content&view=article&id=29&Itemid=51

沉睡月亮 2024-12-12 02:09:13

我使用过 ZlibAbbrevia 并且工作得很好

I've used Zlib and Abbrevia and are working very well

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文