Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing array to zip32.dll
Message
 
To
24/11/1999 15:59:06
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00295280
Message ID:
00295376
Views:
20
Hi Andrus,

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
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform