Link to home
Start Free TrialLog in
Avatar of formadmirer
formadmirerFlag for United States of America

asked on

VFP9 vfpcompression Not Working

I need to unzip a file from within VFP 9. I found a couple of different solutions, but as of yet have had no success using any of them.

My latest attempt is with vfpcompression.fll, which looks to be very straightforward. I found what appears to be three different versions available for download. I'm using the latest one I could find, from Dec 2008.

Basically all you do is:
SET LIBRARY TO (pcLibrariesDir) + "vfpcompression.fll"
UnzipOpen(lcFileName) 
UNZIP()
UnzipClose() 
SET LIBRARY TO

Open in new window

lcFileName is the full path and file name of the file to be unzipped. It will be unzipped into the same directory. Seems pretty simple.

Yet I have been attempting to get this simple task to work now for more than two hours.

I found in another forum that you need to have both msvcr71.dll and msvcp71.dll in the same directory as vfpcompression.fll, which they are.

I have no idea why this is not working.
SOLUTION
Avatar of bbao
bbao
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of formadmirer

ASKER

Thanks for the help.

Of the versions I've found, none are vfpcompression71. They all unzip to vfpcompression, all the way back to the 2006 release.

A google search turned up no download for vfpcompression71.fll, none that I could find anyway.

I did check my system for MSVCR80.dll and it is found in various locations. So I added the most recent incarnation to the libraries dir in my project, the same dir where vfpconnection.fll is. The result was the same, no unzip.

At this point I have tried every imaginable scenario using UnzipOpen, Unzip, UnzipClose and UnzipQuick.

I've tried with and without quotes around the pathnames.

I've tried every conceivable dll in the libraries directory where vfpcompression.fll resides.

I've tried each of the versions of vfpcompression that I was able to find and download.

I've literally worked with this for hours with absolutely no luck whatsoever.

All I'm attempting to do is unzip a file downloaded from SourceForge: wput-pre0.6.zip
I even considered that the extra period might be causing an issue, so I first rename the file to simply wput.zip. Of course this does nothing.

At this stage I'm afraid all I can do is present a messagebox saying they'll need to unzip the file for themselves.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
As soon as I fixed the download issue the zip extraction worked like a charm.
Thanks for the help, it really was very much appreciated.
I apologize. I did not request the question be closed without awarding points.

Not sure what the issue is. With nearly 200 questions answered I've never had this issue before.

I will see that the points are awarded as they should be. Sorry.
As soon as I fixed the download issue the zip extraction worked like a charm.
Thanks for the help, it really was very much appreciated.
Avatar of Jesús Hernán Cano Martínez
Jesús Hernán Cano Martínez

Hi, friends.
I am using VFPCompression in several applications and in differente computers, both in x86 as x64, win7, win8x and win10.

But now in just one PC I am receiving "...library invalid..." dispite msvcr71.* are in the same dir: win10, x64 (in other computers with same features the apps runs fine, as expected).

Where can I find vfpcompression71, vfpcompression80 and vfpcompression90? In several URLs from SweetPotato I only receive same VFPCOmpression.fll with 80 kb.

Thanks.