#include <iostream>
#include "allUnicode.h"
void ChilkatSample()
{
CkZipW zip;
if (zip.UnlockComponent(L"jTriol.ZP10899_uxBpnU3XXXX"))
{
bool success = zip.NewZip(L"C:/Users/14713/Desktop/test.zip");
if (success != true)
{
std::cout << zip.lastErrorText() << "\r\n";
return;
}
bool recurse = true;
success = zip.AppendFiles(L"C:/Users/14713/Desktop/XXX/*", recurse);
if (success != true)
{
std::cout << zip.lastErrorText() << "\r\n";
return;
}
success = zip.WriteZipAndClose();
if (success != true) {
std::cout << zip.lastErrorText() << "\r\n";
return;
}
std::cout << "Zip Created!" << "\r\n";
}
}
int main()
{
ChilkatSample();
return 0;
}