Hello dear guest!

Boot Land is a community driven site established since 2006 and focused on data recovery/backup boot disks, research of Windows 2000/XP/2003/Vista/7 install/deployment/antivirus tools, customizing Windows PE systems and even learning how to recover from disaster situations.

How about joining our boot disk community? So do it. Life's short!

  - You get free access to our newsletter with all the interesting buzz about boot disks
  - We share publicity revenue with everyone who wishes to participate at the forums
  - Publicity is never, never, never displayed to members (along with many other cool things)
http://boot-land.net/register

4 Pages V  « < 2 3 4  
Reply to this topic
 What encoding function does WinBuilder use?
post Aug 28 2007, 06:25 PM
Post #31
booty#1
Frequent Member   ***
Group: .script developer

  Joined: 30-March 07 From: Near Frankfurt

Posts: 290
Thank(s): 2


Germany


QUOTE (psc @ Aug 28 2007, 12:06 PM) *
Appareantly you only tested the encode.
The decode was a little bit buggy.

Uh, I am sorry for that whistling.gif
Luckily you are a skilled Delphi programmer...

I applied the bug-fixes you mentioned to wbzip_new and created an all-in-one package containing all the source code, the DCUs and the final exe.

booty#1
Attached File(s)
Attached File  wbzip_new.zip ( 174.8K ) Number of downloads: 234
 
+Quote Post
post Aug 28 2007, 06:34 PM
Post #32
psc
Guru   ******
Group: .script developer

  Joined: 14-July 06 From: Korschenbroich

Posts: 8,903
Thank(s): 557


Germany


QUOTE (booty#1 @ Aug 28 2007, 08:25 PM) *
Uh, I am sorry for that whistling.gif
Luckily you are a skilled Delphi programmer...

I applied the bug-fixes you mentioned to wbzip_new and created an all-in-one package containing all the source code, the DCUs and the final exe.

booty#1


[German] Danke, schau mal hier nach thumbsup.gif
[English] Thanks, have a look here

Peter cheers.gif


--------------------
Build the house starting with the basement rather than with the roof! But always have in mind how the roof should be made!

There are very rarely problems, in most cases there are issues.

There are never stupid questions, there can be only stupid answers.

+Quote Post
post Aug 28 2007, 06:42 PM
Post #33
psc
Guru   ******
Group: .script developer

  Joined: 14-July 06 From: Korschenbroich

Posts: 8,903
Thank(s): 557


Germany


QUOTE (booty#1 @ Aug 28 2007, 08:25 PM) *
I applied the bug-fixes you mentioned to wbzip_new and created an all-in-one package containing all the source code, the DCUs and the final exe.

Let me give a small additional change I made in Decode.pas.
It is not a bug fix, but maybe an enhancement.
CODE
    if ZFile.OpenArchive(ArctempFileName) then
    begin
      ZFile.ExtractAll(PathToExtract);
      ZFile.CloseArchive;
    end;


Peter


--------------------
Build the house starting with the basement rather than with the roof! But always have in mind how the roof should be made!

There are very rarely problems, in most cases there are issues.

There are never stupid questions, there can be only stupid answers.

+Quote Post
post Aug 29 2007, 09:26 AM
Post #34
booty#1
Frequent Member   ***
Group: .script developer

  Joined: 30-March 07 From: Near Frankfurt

Posts: 290
Thank(s): 2


Germany


QUOTE (psc @ Aug 28 2007, 11:18 AM) *
Where to get ZLIBArchive2?

Just for the archive:

I rediscovered the sources of ZLIBArchive2 (containig the class TZLBArc2):
http://www.mills-enterprise.ca/software/delphi.htm
The original version is called "ZLBArchive v2.x".

needed are the following files:
CODE
ZLibArchive2.pas
ZLIBArchiveGlobals2.pas
compilerdefines.inc
ZLibEx\ZLibEx.pas
ZLibEx\*.obj


booty#1
+Quote Post
post Aug 29 2007, 11:50 AM
Post #35
booty#1
Frequent Member   ***
Group: .script developer

  Joined: 30-March 07 From: Near Frankfurt

Posts: 290
Thank(s): 2


Germany


Hi Peter,

with the code of ZLibArchive2 I was able to optimize the decoding a bit further (the new algorithm is specialized on the way WinBuilder uses ZLibArchive - see the file ZLibArchive2Light.pas for details).
Now it is possible the decompress everything in memory without the need of a temporary file. That means the temporary file is stored in memory. Of course this should not be used for very large files (large before decompression) but for smaller files this should speed up the decoding a bit. I added an optional parameter to the decoding function for specifying if the decryption should be performed in memory or not.

booty#1
Attached File(s)
Attached File  wbzip_new.zip ( 62.54K ) Number of downloads: 153
 
+Quote Post
post Aug 29 2007, 12:07 PM
Post #36
psc
Guru   ******
Group: .script developer

  Joined: 14-July 06 From: Korschenbroich

Posts: 8,903
Thank(s): 557


Germany


QUOTE (booty#1 @ Aug 29 2007, 01:50 PM) *
Hi Peter,

with the code of ZLibArchive2 I was able to optimize the decoding a bit further (the new algorithm is specialized on the way WinBuilder uses ZLibArchive - see the file ZLibArchive2Light.pas for details).
Now it is possible the decompress everything in memory without the need of a temporary file. That means the temporary file is stored in memory. Of course this should not be used for very large files (large before decompression) but for smaller files this should speed up the decoding a bit. I added an optional parameter to the decoding function for specifying if the decryption should be performed in memory or not.

booty#1

Thanks cheers.gif
For now I decided not to use the new functionality (inspite InMemory compared with TempFile is much more better)
  • Never (?) touch a running system
  • In Decode.pas the code reminds me on the buggy version, before I changed.
Peter


--------------------
Build the house starting with the basement rather than with the roof! But always have in mind how the roof should be made!

There are very rarely problems, in most cases there are issues.

There are never stupid questions, there can be only stupid answers.

+Quote Post

4 Pages V  « < 2 3 4
Reply to this topic
1 User(s) are reading this topic ()


  

Collapse

  Topic Replies Topic Starter Views Last Action
No New Posts WinBuilder Running on Windows 98
9 BeatZero 88 Today, 05:46 PM
Last post by: psc
No new Topic has attachmentsWinbuilder update on USB
14 klausf 470 6th February 2010 - 01:01 AM
Last post by: MedEvil
No New Posts Topic has attachmentsWinbuilder 078 sp6
Access violation at address 005B2B2B in module 'WinBuilder.exe'
4 Lennart 309 3rd February 2010 - 03:56 PM
Last post by: Lancelot
No new Topic has attachmentsWinBuilder 078 - Support and Issues
51 mcsdtech 5,437 22nd January 2010 - 04:18 PM
Last post by: psc
No New Posts WinBuilder Dir Tree
Basic Script to Fix WB Tree Directories and itself scripts.
13 Leonam2006 479 20th January 2010 - 03:56 AM
Last post by: Leonam2006