Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ZIP/unZIP DLL - I found one!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00091409
Message ID:
00091564
Vues:
28
>>>Look on www.softseek.com in their programming section. --snip--
>>
>>Hi Nigel!
>>I was hoping to check this out today, but I can not get this web site to come up. I was wondering if you were sure if this was the correct address?
>>
>>Thanks much!
>
>Nevermind Nigel =D)
>As soon as I posted reply, the darn thing decided to work. Hope it isnt going to be one of them days

Roxanne,
I have been working on this ALL day today (it's 17:46 here) in Borland C++ (sorry BILL). I have managed to get it working perfectly. Here is a sample of the unzip code converted to VFP.

DECLARE addUNZIP_Initialise IN aunzip32.dll
DECLARE INTEGER addUNZIP_RestoreStructure IN aunzip32.dll;
INTEGER YesNo
DECLARE INTEGER addUNZIP_ArchiveName IN aunzip32.dll;
STRING ArcName
DECLARE INTEGER addUNZIP_ExtractTo IN aunzip32.dll;
STRING ExtDir
DECLARE addUNZIP IN aunzip32.dll

addUNZIP_Initialise()
addUNZIP_RestoreStructure(0) && 0=NO, 1=YES
addUNZIP_ArchiveName("c:\temp\testzip1.zip")
addUNZIP_ExtractTo("c:\temp\")
addUNZIP()
<\PRE>

You MUST issue an initialise for EACH zip/unzip you want to do. VFP doesn't seem so fussy but C++ brings up AccessViolation errors if you don't. Also, what I did as a test was to put the aunzip32.dll on a floppy, zipped all the dlls to another file on there and do an addUNZIP for this file to put them into the windows\system directory for next time (I am writing some utils for my daughter who knows nothing about PCs and lives 15 miles away so this is perfect). So long as the aunzip32.dll file is in either the windows\system directory or the same place as the exe file which calls it. There is more info in a separate header file which I have downloaded (C++) - I will post values for the constants within there soon.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform