165Fermer167
PpHdLe 21/05/2010 à 12:04
PpHd (./158) :
Cf. http://www.winimage.com/zLibDll/minizip.html

 arc = unzOpen ("MyArchive.zip");
 strcpy (FileName, "");
 do{
 unzGetCurrentFileInfo (arc, NULL, &FileName, sizeof (FileName), NULL, 0, NULL, 0);
 if (strcmp (FileName, WhatIWant) == 0) {
    // Found
    unzOpenCurrentFile(arc);
    unzReadCurrentFile (arc, &Buffer, BufferLen);
    unzCloseCurrentFile (arc);
    break;
 }
 } while (unzGoToNextFile (arc) != UNZ_END_OF_LIST_OF_FILE);
unzClose (arc);

Fait à l'arrach juste en lisant leur interface.