?? client.cpp
字號:
#include "stdafx.h"
#include "KAEZipArchive.h"
#include "ClientInit.h"
#include "KAEZipArchiveImport.h"
int PreProcessFileProc(
int nFullNameInArchiveLen,char szFullNameInArchive[],
void *pvContext
)
{
return 0;
}
int ProcessFileProc(
KAEARCHIVESTATUS nArchiveStatus,
int nFullNameInArchiveLen, char szFullNameInArchive[],
int nPathNameInTempLen,char szPathNameInTemp[],
int nPathFileSize,int nPathFileSizeHigh,
void *pvContext
)
{
return 0;
}
int main(int argc, char* argv[])
{
int Result = false;
int nRetCode = false;
char *pszString = NULL;
char * csTempPath = "c:\\temp";
int nLen1 = strlen(csTempPath) + 1;
char * csZipFile = "d:\\work\\abc.zip";
int nLen2 = strlen(csZipFile) + 1;
int nRetVal;
nRetCode = ClientInitialize();
if (!nRetCode)
goto Exit0;
piKAEZipArchive->Init(nLen1,csTempPath);
piKAEZipArchive->SetCallBackFunc(&PreProcessFileProc, NULL, &ProcessFileProc,NULL);
piKAEZipArchive->Extract(nLen2,csZipFile,&nRetVal);
piKAEZipArchive->UnInit();
nRetCode = ClientUnInitialize();
if (!nRetCode)
goto Exit0;
Result = true;
Exit0:
return Result;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -