SOL9 Sample: ZipFileParser
|
1 Screenshot
2 Source code
/*
* ZipFileParser.cpp
* Copyright (c) 2015 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
// SOL9
// 2008/09/13
#include <sol\ZipFileParser.h>
// ZipFileParser class sample program.
void _tmain(int argc, TCHAR** argv)
{
if (argc !=2) {
printf("ZipFile.exe zipfile (*.zip|*.jar|*.docx|*.pptx|*.xlsx)\n");
return;
}
if (GetFileAttributes(argv[1]) == 0xffffffff) {
printf("File not found %s\n", argv[1]);
return;
}
try {
ZipFileParser* parser = new ZipFileParser();
if (parser->open(argv[1]) ==0) {
parser->start();
parser->wait();
} else {
delete parser;
parser = NULL;
}
} catch (int ex) {
printf("ZipFileParser:Exception %d\n", ex);
}
}
Last modified: 2 May 2016
Copyright (c) 2016 Antillia.com ALL RIGHTS RESERVED.