C/C++: Compressing multiple files with 7z

2012-01-17
2012-12-07
  • Soren Dreijer
    Soren Dreijer
    2012-01-17

    I've been looking through the various files in the 7z SDK (namely 7zC.txt) to figure out how to compress and decompress using 7z. Decompressing is covered in 7zC.txt and 7zMain.c, but I see no mention of how to compress files.

    Where should I look / how should I go about adding multiple files to a new 7z archive in C/C++.

    Thanks,
    Soren

     
  • Igor Pavlov
    Igor Pavlov
    2012-01-17

    C code supports only decomression.
    C++ code example:
    CPP\7zip\UI\Client7z\

     
  • Soren Dreijer
    Soren Dreijer
    2012-01-17

    Thanks for the quick reply.

    Looks like I *have* to go the COM route then? With the C code I was able to just call the raw functions rather than going through the COM interface.