example.cpp

来自「ZIP TREE 的sample 請各位多加建議」· C++ 代码 · 共 30 行

CPP
30
字号
// Visual C++ Example Source Code to create a Zip file
//

#include "stdafx.h"

#include "c:/ck2000/components/ChilkatLib/CkZip.h"
#include "c:/ck2000/components/ChilkatLib/CkZipEntry.h"

int APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR     lpCmdLine,
                     int       nCmdShow)
{
    // Unlock the Zip product.
    // This only needs to be done once when the first CkZip object
    // is instantiated.
    CkZip zip;
    zip.UnlockComponent("unlockCode");

    // Create a new Zip and append files and directories recursively.
    zip.NewZip("myZip.zip");
    zip.AppendFiles("./Tree/*",true,0);
    zip.WriteZipAndClose(0);

    return 0;
}



⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?