Posted: Mon Apr 27, 2009 2:06 pm
it works! thanks a lot.gnozal wrote:... should be fixed (same link).endo wrote:wow, u r fast! I'm waiting thx
http://www.purebasic.com
https://www.purebasic.fr/english/
it works! thanks a lot.gnozal wrote:... should be fixed (same link).endo wrote:wow, u r fast! I'm waiting thx
Could you post some code ?Inner wrote:PB4.30, using your latest release posted above.
Seam to have some problems with the callbacks
Looks like a subsystem issue [did you enable SubSystems\UserLibThreadSafe ?].Inner wrote:And when I try thread safe it does this;
[06:37:21] The Program was killed.
[06:37:22] [COMPILER] Linker error!
POLINK: error: Unresolved external symbol '_PB_StringBasePosition'.
POLINK: Fatal error: 1 unresolved external(s).
Code: Select all
Procedure CB_COMP(FileName.s, Progression.f, Param.l)
Debug FileName + ", " + StrF(Progression, 0) + ", " + Str(Param)
EndProcedure
PureZIP_SetCompressionCallback(@CB_COMP())
If PureZIP_Archive_Create("C:\purebasic430\program\test.zip", #APPEND_STATUS_CREATE)
PureZIP_Archive_Compress(#PB_Compiler_Home + "Examples\Sources\2DDrawing.pb", #True, 1)
PureZIP_Archive_Compress(#PB_Compiler_Home + "Examples\Sources\Arithmetic.pb", #True, 2)
PureZIP_Archive_Compress(#PB_Compiler_Home + "Examples\Sources\AsmInline.pb", #True, 3)
PureZIP_Archive_Close()
EndIf
No need your fragment of code showed the error in my callbacks, something must have changed somewhere, I used to use;gnozal wrote:Could you post some code ?Inner wrote:PB4.30, using your latest release posted above.
Seam to have some problems with the callbacks
No I just enabled "Create threadsafe executable" from the compiler options.gnozal wrote:Looks like a subsystem issue [did you enable SubSystems\UserLibThreadSafe ?].Inner wrote:And when I try thread safe it does this;
[06:37:21] The Program was killed.
[06:37:22] [COMPILER] Linker error!
POLINK: error: Unresolved external symbol '_PB_StringBasePosition'.
POLINK: Fatal error: 1 unresolved external(s).
The following example works in both standard and threadsafe modes.Code: Select all
Procedure CB_COMP(FileName.s, Progression.f, Param.l) Debug FileName + ", " + StrF(Progression, 0) + ", " + Str(Param) EndProcedure PureZIP_SetCompressionCallback(@CB_COMP()) If PureZIP_Archive_Create("C:\purebasic430\program\test.zip", #APPEND_STATUS_CREATE) PureZIP_Archive_Compress(#PB_Compiler_Home + "Examples\Sources\2DDrawing.pb", #True, 1) PureZIP_Archive_Compress(#PB_Compiler_Home + "Examples\Sources\Arithmetic.pb", #True, 2) PureZIP_Archive_Compress(#PB_Compiler_Home + "Examples\Sources\AsmInline.pb", #True, 3) PureZIP_Archive_Close() EndIf
Yes, the callback format changed in the latest download [additional UserParam]. See Tranquil's request.Inner wrote:No need your fragment of code showed the error in my callbacks
Sorry, you need to enable the UserLibThreadSafe subsystem.Inner wrote:No I just enabled "Create threadsafe executable" from the compiler options.
Right'o np. thanks.gnozal wrote:Yes, the callback format changed in the latest download [additional UserParam]. See Tranquil's request.Inner wrote:No need your fragment of code showed the error in my callbacksSorry, you need to enable the UserLibThreadSafe subsystem.Inner wrote:No I just enabled "Create threadsafe executable" from the compiler options.
I don't know exactly what you mean ?SFSxOI wrote:Does this lib also encompass the zip CRC capabilities?
I have to change my code to use prototypes.- Changed: Call(C)Function(Fast) parameters have been changed from 'Any' to 'Integer'.
I don't know what MS doesgtatVSS wrote:Experimenting with PureZIP to unpack zip files, I find it runs in 1/3 the time MS Expand All takes (using 180MB zip file with many files). What is PureZip NOT doing and does it matter?
I never use the MS explorer (I am totally addicted to Total Commander) so I can only guess : it's some refresh delay, which you can probably force by sending some message to the explorer.gtatVSS wrote:Secondly, my 3-line PureZIP unzipper app (simply calling PureZIP_ExtractFiles ) returns control to the WinXP command shell way before the files appear in the explorer or to the DIR command - do I need some sort of delay/wait in my app when I unzip a folder before I can see all the files in it?
With the PureZIP_Archive_* functions, you can parse a ZIP archive (PureZIP_Archive_FindFirst()/PureZIP_Archive_FindNext()) and only extract some of the archived files (PureZIP_Archive_Extract()) based on the archived path (PureZIP_Archive_FileInfo()).gtatVSS wrote:Thirdly, can I use PureZip to unzip just a selected folder (e.g. with a filespec like "fred\innerFolder\things\*.jpg") ? I have a zip file with a complex internal folder hierarchy and I'm only interested in the content of a particular path. I suspect that PureZIP is so fast that this requirement is mostly irrelevant.