📄 example.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 + -