Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File Compression - Urgent.
Message
From
05/06/2001 07:34:32
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
05/06/2001 05:59:34
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00514973
Message ID:
00515010
Views:
14
This message has been marked as the solution to the initial question of the thread.
Jimi,
I tried the 32 bit OCX version and it worked :)
lcPath  = GetDir()
lnFiles = adir(arrFiles, lcPath+'*.*')
create cursor myCursor (FileName c(30), FileSize b)
append from array arrFiles
lcCompressedPath = sys(5)+curdir()+'test\'

with ThisForm.Olecontrol1
 scan 
	.InputFile = lcPath+FileName
	.OutPutFile = lcCompressedPath+'_LZ_'+FileName
	.Compress()
 endscan
 scan
 	.InputFile  = lcCompressedPath+'_LZ_'+FileName
 	.OutPutFile = lcCompressedPath+FileName 
	.DeCompress()
 endscan
endwith
Cetin

>Hi Cetin,
>
>I'm at the Gzip web site now(http://www.gzip.org/zlib/), it provides some .h source code in C++ format and .OCX libraries which it says is for win98/NT. But can I import any OCX into VFP to use? Or must the OCX be specially written for VFP? It's kinda hard to read those source code, I dunno whether I can use them or not.
>
>Also, what is the difference between DLL and OCX? There are OCX and DLL version of libraries, I dunno which should I take.
>
>Thanks for any help!!
>
>Jimi
>
>
>>>Hi all,
>>>
>>>Are there any class or build-in function of VFP6.0 supports file compression? I want to compress some DBF and Text files such that I can save a lota time when uploading data to server. I know I could use some 3rd party programs to do it, but it would be much better if I can just use VFP6.0 to finish the task.
>>>
>>>It is urgently needed, any help is greatly appreciated!
>>
>>Jimi,
>>AFAIK there is no VFP built-in function to do that.
>>Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform