Zipping increment file names using Zip Utils
Posted
by
Peter
on Stack Overflow
See other posts from Stack Overflow
or by Peter
Published on 2012-10-07T02:16:57Z
Indexed on
2012/10/07
3:38 UTC
Read the original article
Hit count: 246
Hello I've been using "Zip Utils" from http://www.codeproject.com/Articles/7530/Zip-Utils-clean-elegant-simple-C-Win32
to zip files and folders. the easy thing is if the file name is known i just need to do something like this
HZIP hz; DWORD writ;
hz = CreateZip(_T("filename\\image1.zip"),0);
The problem is I get errors when trying to zip files by incrementing file names within a loop
int i= 0;
for(i=0; i<record; i++)
{
ZipAdd(hz,_T("doc"+i+1+".kml"), _T("filename\\doc"+i+1+".kml"));
}
© Stack Overflow or respective owner