Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating zip file with info zip zip32.dll
Message
De
01/12/1999 13:27:22
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Creating zip file with info zip zip32.dll
Divers
Thread ID:
00297427
Message ID:
00297427
Vues:
344
I use info-zip zip32.dll file to create zip file and
Christof Lange struct class to pass filenames to it.

This dll creates a temporary zip file but after that a
page fault occurs.

zip32.dll has diagnostics option to help locate the problem
but I'm not capable to turn it on.

Why this code does not work?

Is it possible to turn zip32.dll diagnostics on to help determine the error?

Problem code

set classlib to struct
declare long ZpArchive in zip32.dll ;
long argc, string funame , string Zipnames
oFiles = CREATEOBJECT("FilesArray")
Dimension oFiles.aFiles[2]
oFiles.Requery()
oFiles.aFiles[1] = "c:\autoexec.bat"
oFiles.aFiles[2] = "c:\autoexec.bat"
? ZpArchive( 2, 'test.zip', oFiles.GetString() ) && causes page fault
return

DEFINE CLASS FilesArray AS STRUCT
DIMENSION aFiles[1]
cMembers = "pz:aFiles"
ENDDEFINE
Andrus
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform