Advertisement
2_2002-2004 OLE/ COM/ DCOM/ Active-X #114563

JRRCompressZ-It

How to use JRCompressZIt By Jim Reforma virushacker23@yahoo.com http://www.linuxman.2ya.com or http://www.dakila7forums.ne1.net Ok. So you've just downloaded the JRRCompress-Z-It. Now you want to know how to use it properly? Well, here are some very simple ways to get you started. First, we'll describe the control's Properties. VB 4 users should read this document. A 16-bit version is released in this download. JR-Z-It Properties and methods. method CompressData Usage: Compresses a byte array Parameters: Byte Array, (ie. MyData()) Notes: It must be a byte array. To to this, pass the array name and both parentheses as per ( ), with no number inside of them. This passes a reference to the entire array. When this method is successful, the CompressedSize property contains the compressed size of the data, the OriginalSize property contains the original size of the data before compression. Returns: Error code. If 0 then it was successful. If negative, then an error has occurred. method DecompressData Usage: Decompresses a byte array, given the original size Parameters: Byte Array, (ie. MyData()), Long (ie, OrigSize&) Notes: The byte array is the compressed data, the Long represents the original (decompressed) size of the data. You can retrieve this original size from the property OriginalSize after calling a successful CompressData method. The OriginalSize and CompressedSize properties are reset to zero. Returns: Error code. If 0 then it was successful. If negative, then an error has occurred. method CompressString This method is the same as the CompressData method and produces the same results, but the first parameter is a string, not a byte array. The CompressedSize and the OriginalSize properties are filled with the same values as per the CompressData method. method DecompressString This method is the same as the DecompressData method, only that the first parameter is a string, not a byte array. The CompressedSize and OriginalSize properties are reset to zero. property CompressedSize Read-Only. Contains the value which represents the compressed size of the data or string that was compressed in the last executed CompressData or CompressString method. property OriginalSize Read-Only. Contains the value which represents the decompressed (original) size of the data or string that was compressed in the last executed CompressData or CompressString method. Attention: VB 4 - 16 bit Users A 16-bit version has been released. In this new download. It is a .CLS file which encapsulates the functionality of the control. It comes as a class. This is a class module in VB 4 - 16 Bit versions. It will make use of the 16 bit zLib.DLL library. It should make life easier for developers who still use the 16-bit version of VB 4.0 (zLib.DLL is written by zLib authors. VB is a trademark of Microsoft Corporation).

AI

Yapay Zeka Özeti: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Kaynak Kod
original-source
Upload
Orijinal Yorumlar (3)
Wayback Machine'den kurtarıldı