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