Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WINZIPMGR doesn't work in exe
Message
From
03/02/2003 10:12:37
 
 
To
28/01/2003 19:10:53
Michael Ouellette
Australian Technical Services (VIC) Pty
Australia
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00746490
Message ID:
00748367
Views:
19
>I can use the below in a form and it works just fine under the development environment. Once I compile and run it in the exe NOTHING happens!
>oWinZip = NEWOBJECT( "WinZipMgr", "WinZipMgr.prg")
>owinzip.AddFiles( destin, "company.* employ.* test.*")
>where destin="Z:\backup\backup.zip" && my zip drive
>
>I have a licensed copy of Winzip. When setting Debug on and running the exe through VFP, I can step through the process but it still doesn't zip the files?!! The files Process.vcx and WinZipMgr.prg are included in the exe.
>Any ideas???
>
>TIA

Probably it can't find the registry class when run from your exe, so it's unable to locate your copy of WinZip®. It's probably returning error 18, "Unable to create the Registry object". Try adding registry.vcx to your project and recompiling the exe. Registry.vcx in in the /ffc sub-directory of your VFP installation folder.

-Rick
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform