Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add Files procedure of zipmgr gives error
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00960661
Message ID:
00960696
Vues:
11
Hi Bharat,

Sounds like it can't find the class library. The API_APPRUN class is in PROCESS.VCX, which is included in the ZipMgr download.

From the ZipMgr help file:

"Be sure that VFP can find the PROCESS.VCX class library when you use ZipMgr from the Visual FoxPro IDE, and be sure to include PROCESS.VCX in your project when using ZipMgr in a compiled EXE."

If you prefer not to use API_APPRUN, you can use Windows Script Host (WSH) instead.

"To use WSH instead of API_AppRun, call ZipMgr::SetRunType(2) before calling AddFiles() or ExtractFiles(). See the SetRunType method documentation for more information."

HTH,

-Rick


>Hi,
>
> I was trying to append two files in the zip file using oWinZip1.addfiles(FILEname2, Filename1). Filename1 has two files C:\x c:\y
>where oWinZip1 is an object from
>oWinZip1 = NEWOBJECT( "ZipMgr", "ZipMgr.VCX")
>While using addfiles procedure of oWinZip1
>
>It gives me following error.
>Error # 1733
>Message: Class defination API_APPRUN is not found.
>Line 13
>Code.loprocess = CreateObject("API_APPRUN", ccommandline, "", "NOR")
>Method run command.
>
> I am running the similar command in other procedure successfully. Any suggestions.
>
>Thanks
>Bharat
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform