Creating a ZIP file on Windows (XP/2003) in C/C++

前端 未结 7 834
粉色の甜心
粉色の甜心 2020-11-29 05:01

I am looking for a way to create a ZIP file from a folder in Windows C/C++ APIs. I can find the way to do this in VBScript using the Shell32.Application CopyHere method, and

相关标签:
7条回答
  • 2020-11-29 05:42

    A quick Google search came up with this site: http://www.example-code.com/vcpp/vcUnzip.asp which has a very short example to unzip a file using a downloadable library. There are plenty of other libraries available. Another example is availaible on Code Project entitled Zip and Unzip in the MFC way which has an entire gui example. If you want to do it with .NET then there is always the classes under System.Compression.

    There is also the 7-Zip libarary http://www.7-zip.org/sdk.html. This includes source for several languages, and examples.

    0 讨论(0)
提交回复
热议问题