⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example.cpp

📁 ZIP TREE 的sample 請各位多加建議
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -