using 7zip sdk to compress a file, but the archive file is not as original and can not decompress using unrar

扶醉桌前 提交于 2019-12-06 08:06:27

There is an example on CodeProject of someone creating a C# interface for 7z using the SDK. He also mentions it is now possible to use COM against the DLL's, but I don't know how that works.

Check out C# (.NET) Interface for 7-Zip Archive DLLs on The Code Project.

If you are looking to create a RAR archive, you may be out of luck, as it is closed-source. You can probably use external libraries, but the compression algorithm is proprietary.

From the RAR Wiki Page:

RAR files may be created only with commercial software WinRAR, RAR, and software that has permission from the licensor Alexander Roshal

I would recommend investigating one of the many unencumbered alternatives.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!