¿¬½ÀÀå(´Ù¹ö¸®°í °©´Ï´Ù...)-³²±æ ±ÛÀÌ ÀÖÀ¸¸é ¹Î°¡ÃÌ¿¡ ³²°ÜÁֽðí, ȸ¿ø °¡ÀÔÀ» ¹ÞÁö ¾Ê½À´Ï´Ù. |
---|
2020/02/14 (18:17) from 124.137.38.216' of 0' | Article Number : 1155 |
... | Access : 345 , Lines : 32 |
(MFC) Zip »ý¼º, Ç®±â »ùÇà |
---|
Download : 20200214_ZipTest.zip
(2332 Kbytes)
|
Zip Utils - clean, elegant, simple, C++/Win32 https://blog.naver.com/binoz/40044276494 void CZipTestDlg::OnBnClickedBtnzip() { // simple.bmp ÆÄÀÏÀ» ÀÎÀÚ·Î ³Ö½À´Ï´Ù. ±×·±µ¥ ½ÇÁ¦·Î // Zip ÆÄÀÏ ³»¿¡¼´Â znsimple.bmp·Î ºÎ¸¦ °ÍÀÔ´Ï´Ù. // ÅؽºÆ®ÆÄÀϵµ À¯»çÇÕ´Ï´Ù. HZIP hz = CreateZip( TEXT("simple1.zip"), 0); ZipAdd(hz, TEXT("znsimple.jpg"), TEXT("simple.jpg") ); ZipAdd(hz, TEXT("znsimple.txt"), TEXT("simple.txt") ); CloseZip(hz); } void CZipTestDlg::OnBnClickedBtnunzip() { HZIP hz = OpenZip( TEXT("simple1.zip"), 0); ZIPENTRY ze; GetZipItem(hz, -1, &ze); // -1Àº zip ÆÄÀÏ¿¡ ´ëÇÑ ÀüüÀûÀÎ Á¤º¸¸¦ ÀÇ¹Ì int numitems = ze.index; for (int zi = 0; zi < numitems; zi++) { ZIPENTRY ze; GetZipItem(hz, zi, &ze); // ¾ÐÃà ÆÄÀÏ ³»ÀÇ °¢°¢ÀÇ ÆÄÀÏ(¾ÆÀÌÅÛ)¿¡ ´ëÇÑ Á¤º¸ °¡Á®¿À±â UnzipItem(hz, zi, ze.name); // °¢ ¾ÆÀÌÅÛ¿¡ ´ëÇÑ ¾ÐÃà Ç®±â } CloseZip(hz); } |