int WINAPI UnZipFile(const char *pszZipFile,const char *pszPath) { if( pszZipFile == NULL || pszPath == NULL ) return 0; CString strZip,strPath; strZip.Format("%s",pszZipFile); strPath.Format("%s",pszPath); CZipArchive zip; zip.Open(strZip, CZipArchive::open); for (int i = 0; i < zip.GetNoEntries(); i++)//输出文件(!!!没有文件夹) { if( !zip.ExtractFile(WORD(i) , strPath) ) { break; } } zip.Close(); return 1; }