Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing array to zip32.dll
Message
From
25/11/1999 13:23:30
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00295280
Message ID:
00295603
Views:
20
>check out my Struct class here in the library for an example about how to pass an array to an API function. Basically, you need:
>
>DEFINE CLASS FilesArray AS STRUCT
>   DIMENSION aFiles[1]
>   cMembers = "pz:aFiles"
>ENDDEFINE
>
>declare long ZpArchive in zip32.dll ;
>long argc, string funame , string Zipnames
>
>oFiles = CREATEOBJECT("FilesArray")
>Dimension oFiles.aFiles[2]
>oFiles.Requery()
>oFiles.aFiles[1] = "Test1.Exe"
>oFiles.aFiles[2] = "Test2.Txt"
>? ZpArchive( 2, 'test.zip', oFiles.GetString() )
>
Christof,

There are no Requery() nor GetString() methods in struct class
dated 08/24/1997
There is Reset() method but what to call instead of GetString() ?

Is there any documentation of examples of usage of this class?
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform