반응형
zip/unzip 압축 해제
CFileFind file;
bool bFindFile = file.FindFile(_T("C:\\Users\\test"));
CString strfileFolder;
if( !bFindFile )
{
CString str = _T("C:\\Users\\test");
CreateDirectory(str, NULL);
}
CString filename = _T("C:\\Users\\testzip.zip");
HZIP hz = OpenZip( filename, 0 );
ZIPENTRY ze;
GetZipItem( hz, -1, &ze);
int numitems = ze.index;
CloseZip(hz);
RemoveDirectory(str);반응형
'프로그래밍언어 > C++' 카테고리의 다른 글
| [c++] typedef 란? 사용법 (0) | 2021.04.19 |
|---|---|
| [c++] chrono 시간 측정 예제 (0) | 2021.01.17 |
| [C++]namespace(이름공간) 사용법 (0) | 2020.12.06 |
| [c++]error c2668 'pow' 오버로드된 함수에 대한 호출이 모호합니다 (1) | 2020.07.14 |
| [c++]std::vector의 size와 capacity (1) | 2020.03.18 |
댓글