Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-09-2008, 11:16 AM
Junior Member
 
Join Date: Apr 2008
Posts: 5
Default Unzip by LiteUnzip

Hi,

User of my program could import/export his data and files via the program.
For export part, I do fine (Just follow this)
For import part, I try to do something similar.
But I stuck when define new type ZIPENTRY and FILETIME.

How could I define new type in FFishScript?
How could I get the unzip work?

Thanks
Reply With Quote
  #2 (permalink)  
Old 06-19-2008, 02:58 PM
Junior Member
 
Join Date: Apr 2008
Posts: 29
Default Re: Unzip by LiteUnzip

I also encountered same problem,who can help us!
in addition,how to open encrypted .zip files by SAWZip.dll.
SWFKit,PLS help me!
Reply With Quote
  #3 (permalink)  
Old 06-21-2008, 07:27 AM
Junior Member
 
Join Date: Apr 2008
Posts: 29
Default Re: Unzip by LiteUnzip

the following code where the error?
Code:
struct{ 
 long dwLowDateTime 
 long dwHighDateTime 
}FILETIME
struct {
 long Index 
 long Attributes 
 FILETIME AccessTime 
 FILETIME CreateTime
 FILETIME ModifyTime 
 long CompressedSize 
 long UncompressedSize
char Name 
}zipEntry
var unLiteZip = getAdditionalFile("LiteUnzip.dll");
dllimport unLiteZip stdcall long UnzipOpenFileA(long*,String ,String); 
dllimport unLiteZip stdcall long UnzipGetItemA(char,zipEntry*) ;
dllimport unLiteZip stdcall long UnzipItemToFileA(char,char,zipEntry*) ;
function unzip(){
var obj=new Object
obj.value=0
var ze = new Struct(zipEntry)
UnzipOpenFileA(obj,"c://test.zip",0) 
 trace(obj.value)
 ze.Index =0
 UnzipGetItemA(obj.value,ze)
 trace(ze.Name)//output 0 ???????
 UnzipItemToFileA(obj.value,ze.Name,ze)  
 trace (ze.Name)
 }
Reply With Quote
  #4 (permalink)  
Old 06-30-2008, 08:56 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Unzip by LiteUnzip

Code:
struct { 
 	long dwLowDateTime; 
 	long dwHighDateTime; 
} FILETIME;

struct {
	long Index; 
 	long Attributes; 
 	FILETIME AccessTime; 
 	FILETIME CreateTime;
 	FILETIME ModifyTime;
 	long CompressedSize; 
 	long UncompressedSize;
	char Name[260]; 
} zipEntry;

var unLiteZip = getAdditionalFile("LiteUnzip.dll");
dllimport unLiteZip stdcall long UnzipOpenFileA(long*, String, String); 
dllimport unLiteZip stdcall long UnzipGetItemA(long, zipEntry*) ;
dllimport unLiteZip stdcall long UnzipItemToFileA(long, String, zipEntry*);

function unzip() {
	var obj = new Object;
	obj.value = 0;

	UnzipOpenFileA(obj, "c://test.zip", null); 	
	var handle = obj.value;
	
	var ze = new Struct(zipEntry);
	ze.Index = 0;
	obj.value = ze;
	
	UnzipGetItemA(handle, obj);
 	trace(obj.value.Name);//output 0 ???????
 	UnzipItemToFileA(handle, "c:\\1.pdf", obj);
}

unzip();
Reply With Quote
  #5 (permalink)  
Old 06-30-2008, 03:31 PM
Junior Member
 
Join Date: Apr 2008
Posts: 29
Default Re: Unzip by LiteUnzip

very grateful to SWFKit!!
Reply With Quote
  #6 (permalink)  
Old 04-28-2009, 04:44 AM
RJS RJS is offline
Member
 
Join Date: Sep 2003
Posts: 56
Default How to use LiteUnzip.UnzipItemToBuffer?

SWFKit support - can you please give us an example of how to use the LiteUnzip "UnzipItemToBuffer" method please

Thanks
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:09 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.