English
Units

briefLZ Packer-PCU for XProfan ex 10

 
These PCU uses The briefLZ.lib of Joergen Ibsen (https://www.ibsensoftware.com)

any functions support a Namensraum, which usage too particularly recommended becomes
The Übersichtlichkeit because of watts in the Description the ?_ omitted
Parameter stand in clinging behind the Funktionsnamen

Funktionsbeschreibung:

[quote:ce4322d5e2]BLZ_Init()
mandatory to the first Benutzung called go. the Result is positively in the Erfolgsfalle

BLZ_Free()
mandatory latterly the Benutzung called go

BLZ_CRC(SourceMem&, SourceLength&[, InitialLength&])
SourceMem& = address the Speicherbereichs (z.B. area# or Addr(Text$)
SourceLength& = Size the Speicherbereichs (z.B. SizeOf(area#) or Len(Text$)
InitialLength& = this Parameter is Optional (Default 0), for further Info Please The Original-Help study

Result: CRC-Checksumme as Long

BLZ_UnPackMemory(SourceMem&, DestMem&, DePackedSize&)
SourceMem& = see supra
DestMem& = Zielspeicher, this is before To Reservieren (Memory-Variable dimensionieren)
DePackedSize& = Size the ungepackten File

Result: in the Erfolgsfalle greater 0

BLZ_PackMemory(SourceMem&, DestMem&, SourceLength&)
SourceMem& = see supra
DestMem& = see supra (dieselbe Size How SourceLen, to the pack with the Result this function new Dimmen!)
SourceLength& = see supra[/quote:ce4322d5e2]
E x t r a F u n k t i o n e n :

so too Beginner these PCU benefit can, Have I The 2 subesquent functions (in XProfan 10) added.
Perhaps times the Sourcen standing, around the obigen functions rather To understand.
These functions using a own Dateiheader and lead at entpacken automatically a CRC-Check through

[quote:ce4322d5e2]BLZ_UnpackFile(SourceFile$, DestFile$)
SourceFile$ = File, ggfls. with way, The gepackt go should
DestFile$ = name and ggfls. way the To erstellenden File

Result: 1 in the Erfolgsfalle

BLZ_PackFile(SourceFile$, DestFile$)
see BLZ_UnpackFile()
[/quote:ce4322d5e2]
example:
CompileMarkSeparation
 $U briefLZ.pcu

If BLZ_Init()

    BLZ_PackFile($WinPath + "\Angler.bmp", $TempDir + "\Angler.pak")
    BLZ_UnpackFile($TempDir + "\Angler.pak", $TempDir + "\Angler.bmp")
    Shell "Explorer.exe /e,/n," + $TempDir
    BLZ_Free()

/a>

Greeting
Thomas

990 kB
Kurzbeschreibung: Version 2.0
Hochgeladen:01/06/07
Downloadcounter358
Download
 
12/27/06  
 




Michael
Dell
is you been successful, Real class!!!
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
12/27/06  
 



thanks Michael
couple Examples are missing yet, entpacken of Images into RAM etc. for Games, but since should The others Community-Members yourself ihren Grips straining, The grundsätzliche Possibility is given
 
12/27/06  
 



Have yet an example enclosed, which one gepacktes Image in memory entpackt and darstellt.

the first both Proceduren can naturally too independent of the PCU for Bitmaps use, therefore poste I tappt im dunkeln here again
CompileMarkSeparation
Autor: Thomas (ts-soft) Schulz

Proc CatchBmp

    Parameters MemPointer&
    Declare hDC&, BITMAPFILEHEADER#, BMPInfo&, init&, hImage&
    hDC& = External("user32.dll", "GetDC", External("user32.dll", "GetDesktopWindow"))
    Dim BITMAPFILEHEADER#, 14
    BITMAPFILEHEADER# = MemPointer&
    BMPInfo& = MemPointer& + 14
    init& = MemPointer& + Long(BITMAPFILEHEADER#, 10)
    hImage& = External("gdi32.dll", "CreateDIBitmap", hDC&, BMPInfo&, 4, init&, BMPInfo&, 0)
    External("user32.dll", "ReleaseDC", External("user32.dll", "GetDesktopWindow"), hDC&)
    Dispose BITMAPFILEHEADER#
    Return hImage&

EndProc

Proc FreeCatchBmp

    Parameters hImage&
    DeleteObject hImage&

ENDPROC


Greeting
Thomas
 
12/27/06  
 




Dietmar
Horn
Hello Thomas,

this is Yes time again a ripe performance, your PCU! so eröffnen itself again yet ungeahnte Opportunities!

have your PCU (and naturally too your uFMOD.PCU and the MemoryModule.inc of Sebastian) bypassing into XProfan-manager adopted, so itself the everything too therefore moreover get around can and not so slight verlorengeht (anyway in unserem territory not).

Greeting
Dietmar
 
Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V.  [...] 

Windows 95 bis Windows 7
Profan² 6.6 bis XProfan X2 mit XPSE

Das große XProfan-Lehrbuch:  [...] 
12/27/06  
 



Hello Dietmar, thanks for your praise
take in others Projekten standing nothing in the ways, as long as The beiliegenden Lizensen the others Authors (Specifically the C-Libs) mind go. I Search but everything so from, the it either under LGPL, ZLIB or Modzilla Lizens falls, so the a commercial Use ensured is.

Greeting
Thomas[size=6:ad0d3b2a08], the straight a Compiler in reinem XProfan writes, moreover More soon in a new Thread[/size:ad0d3b2a08]
 
12/27/06  
 




Dietmar
Horn
Hello Thomas,

we're of what others Authors in our manager take in, then becomes fundamentally everything adopted, what the jeweilige Author on additional Info, ZIPs etc. included has. because with strangers feathers would we under no circumstance deck ...

Changes on Codes take I solely then to, if offensichtliche Fehlerchen drin are (what mostly The Lauffähigkeit under smaller PRF-versions concerns), or if me the with some things in the Context with the Lauffähigkeit in the manager favorable or. necessary appear.

Greeting
Dietmar
 
Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V.  [...] 

Windows 95 bis Windows 7
Profan² 6.6 bis XProfan X2 mit XPSE

Das große XProfan-Lehrbuch:  [...] 
12/28/06  
 



Update on Version 2.0

Containerfunktionen added

BLZ_CreatePack(PackFile$)
PackFile$ = name the Packs, ggfl. with way
prepares one new PackFile

BLZ_OpenPack(PackFile$)
PackFile$ = name the Packs, ggfl. with way
Öffnet one Packfile to that further extract

BLZ_ClosePack()
closes the actually PackFile

BLZ_AddPackFile(File$)
File$ = name the hinzuzufügenden File
Fügt a File to a with CreatePack opened gentry hinzu

BLZ_AddPackMem(MemPointer&, Size&)
MemPointer& = Speicheradresse (z.B. a Memory-Variable)
Size& = Size this Memory-Variables
Fügt whom in this memory located data to that gentry hinzu

BLZ_NextPackFile()
Entpackt the next Packfile and gives The Speicheradresse back
around the size To experienced is BLZ_PackFileSize() immediate to this function aufzurufen

BLZ_PackFileSize()
gives the stature the lastly with BLZ_NextPackFile() entpackten Packs

now can any Images, Sounds, XGL-Files etc. into gentry gepackt will be. Have The angepaßte ogldemo as example added.

Greeting
Thomas
 
01/06/07  
 




Jac
de
Lad
Thomas has its Account Yes delete let and its Website is neither More present. i want the whole gladly to a universell einsetzbaren stature ausweiten. moreover I will yet functions for Number of Files in the archive and Filenames and so add. If I ready be, lad ichs high.

Jac
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
05/19/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

11.443 Views

Untitledvor 0 min.
p.specht06/21/21
PETER195604/27/21
Christof Neuß10/30/16
E.T.02/17/16
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie