Sample code for 30+ languages & platforms
Unicode C++

Transition from Zip.AppendSb to Zip.AddSb

Provides instructions for replacing deprecated AppendSb method calls with AddSb.

Chilkat Unicode C++ Downloads

Unicode C++
#include <CkZipW.h>
#include <CkStringBuilderW.h>

void ChilkatSample(void)
    {
    bool success = false;

    CkZipW zip;

    //  ...
    //  ...
    const wchar_t *pathInZip = L"example.txt";
    CkStringBuilderW sb;
    sb.Append(L"This is a test");
    const wchar_t *charset = L"utf-8";

    //  ------------------------------------------------------------------------
    //  The AppendSb method is deprecated:

    success = zip.AppendSb(pathInZip,sb,charset);

    //  ------------------------------------------------------------------------
    //  For consistency, the name has changed to AddSb.

    success = zip.AddSb(pathInZip,sb,charset);
    }