Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where is Stephen Darlington? Author of AZIP.DLL AUNZIP.DLL

Status
Not open for further replies.

Nifrabar

Programmer
Mar 16, 2003
1,343
NL
Hi!
In my apps I do use AZIP.DLL and AUNZIP.DLL for making backups.
In win7 these DLL's don't work for me.
Anyone who knows how to contact the author Stephen Darlington?

TIA
-Bart
 
There's an app I've used for archiving called BigSpeed ZIP DLL. I don't know if he's still around, but you can try it:
7-Zip also has a DLL you could use which is currently supported and does work. See:
For both of these projects, write a wrapper function which converts the AZIP/AUNZIP passed parameters to ones compatible with the others.

BigSpeed ZIP DLL has the ability to uncompress to memory blocks. I had the author write a special version which does that. It's not documented (or at least it wasn't back then), but I can show you how to do it. I asked for this feature because we had .ZIP files on CDs and I needed only to scan through the data without extracting it, looking for certain filter conditions.

Hope this helps.

Best regards,
Rick C. Hodgin
 
Craigs library works very well.

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
I got things back to work.
Due to a modifcation of my app the azip32 failed.
The actual zip action's syntax is : lnFilesInZip = Azip(.T. ,lcArchiefnaam , lcWhat2Backup)
lnFilesInZip returns the number of files which has been zipped.
lcArchiefnaam is the name of the zipfile
lcWhat2Backup contains the path to the files which must be zipped.

The latter caused my failure.
I always had a relative path to the files and I changed it in a full-path naming.
But [beginners fault] this may not contain any space in the file name.

The stupid thing: I faced this problem also years ago (problem of 55+ age)
I can't remember how I fixed that.

Any suggestion:
"data\*.*" works fine wheras
"c:\program files\myapp\data\*.*" fails

Any suggestions? I have to update as my data-files can't stay in sub-folder of my app due to win7 restrictions.

TIA
-Bart
 
Bart,

It may be the space in "c:\program files\myapp\data\*.*". Try to get the shortened version of the path and see if that corrects it.

Code:
DECLARE INTEGER GetShortPathName ;
    IN WIN32API ;
    STRING  tcLongPath, ;
    STRING@ tcShortOut, INTEGER tnShortOutLength

lcShortName = SPACE(1024)
lnLength = GetShortPathName("c:\program files\myapp\data\*.*", @lcShortName, LEN(lcShortName))
IF lnLength != 0
    * File exists
    lcShortName = LEFT(lcShortName, lnLength)
ELSE
    * Error
ENDIF

Untested, but should work (he said with a smile). :)

Best regards,
Rick C. Hodgin
 
Hi Rick!

That's an intersting solution.
I will try and see how this works out. But just because of curiousity.
Infact I changed to thread184-1695984 as I found this was going off-topic.
In that thread Olaf pointed me to the solution.

Anyway thanks for sharing your knowledge.
-Bart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top