Re: [fpc-pascal] streaming file from zip into my app
Marc Santhoff wrote: Am Freitag, den 30.11.2007, 23:09 +0200 schrieb Graeme Geldenhuys: On 30/11/2007, Marc Santhoff <[EMAIL PROTECTED]> wrote: But I still have questions about the code. Do I understand correctly that Graeme contributed the de-/compression code but it still has to get integrated and used by the component? We used the zlib (de)compression units from the tiOPF project. We simply removed the references to other tiOPF units - it was pretty stand-alone already so was easy. So yes, what's left is to integrate that code into the TZipFile component and do some tests. The (de)compression code has already been well unit tested in tiOPF, so we know that part works perfectly. As I stated earlier, I have also found a Object Pascal implementation of 7zip which I would like to add to both TZipFile and tiOPF - I still need to double check the licensing though. I'm remembering slowly, zlib is for handling gzip format, pkzip format is still missing. And 7zip, does it have it's own format or is this used for the common ".zip"-files? Both gzip and zip support DEFLATE compression. The main difference between the two is that gzip internally ias a solid archive and zip not. This enables the use of the zip format as a "filesystem" without requiring to inflate the entire archive. 7zip uses LZMA compression which is also supported by the zipfile format. If I would want to complete the component, I'd try to use and maybe add something to the unit I've already found in packages/extra/unzip. At least the compression routines should do. Wherever you will start it will boil down to implement the zlib compression / decompression (inflate / deflate) algorithms. Darius Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Help getting started with FPC
Edward Kearns wrote: Because of all the help I got, especially from Jonas Maebe, I successfully opened and ran successfully in LIghtweight IDE the Pascal program I had developed over several years in Think Pascal. NOW I can modify it, as I had desired. That's great! What was the problem? File extensions? I'd like to know so I can make the error messages better. /Ingemar ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Help getting started with FPC
Ingemar Ragnemalm wrote on za, 01 dec 2007: That's great! What was the problem? File extensions? I'd like to know so I can make the error messages better. When I tried it at first, I neglected to add a "Program HelloWorld;" header and also got the "No main program found. Can not build." error message. It took me a while to figure out how to tell the IDE what the "main program" is. Maybe it would be handy to add "(does it have a program header?)" at the end of that error message. Jonas This message was sent using IMP, the Internet Messaging Program. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Help getting started with FPC
>> I did try LWP, and when I opened New Skel, and Compiled, and Ran, all I got were error message. Then I must guess that you either have problems with the paths (strange characters that mess up the command lines) or something is not installed properly. What does the "about" box look like? It should tell what compilers are installed.>> First of all, note that LWP 0.2.9's demo is TransSkel.p, not NewSkel.p, as in the Lightweight Pascal IDE notes. Then when I do compile, and see nothing happen, the "about" box says: Lightweight IDE: 0.2.9 FPC (Intel): Failed! FPC (PPC): 2.2.0 GCC: powerpc-apple-Darwin8-gcc-4.0.1(GCC) TransSkel: 4.0a1 Ed ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Help getting started with FPC
My problem was simply forgetting some of the syntax to use in a Pascal program! After I saw that, it was easy to run. Ed On Dec 1, 2007, at 5:13 AM, Ingemar Ragnemalm wrote: Edward Kearns wrote: Because of all the help I got, especially from Jonas Maebe, I successfully opened and ran successfully in LIghtweight IDE the Pascal program I had developed over several years in Think Pascal. NOW I can modify it, as I had desired. That's great! What was the problem? File extensions? I'd like to know so I can make the error messages better. /Ingemar ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] streaming file from zip into my app
> Am Freitag, den 30.11.2007, 23:09 +0200 schrieb Graeme Geldenhuys: > > On 30/11/2007, Marc Santhoff <[EMAIL PROTECTED]> wrote: > > > > > > But I still have questions about the code. Do I understand correctly > > > that Graeme contributed the de-/compression code but it still has to get > > > integrated and used by the component? > > > > We used the zlib (de)compression units from the tiOPF project. We > > simply removed the references to other tiOPF units - it was pretty > > stand-alone already so was easy. So yes, what's left is to integrate > > that code into the TZipFile component and do some tests. The > > (de)compression code has already been well unit tested in tiOPF, so we > > know that part works perfectly. As I stated earlier, I have also > > found a Object Pascal implementation of 7zip which I would like to add > > to both TZipFile and tiOPF - I still need to double check the > > licensing though. > > I'm remembering slowly, zlib is for handling gzip format, pkzip format > is still missing. And 7zip, does it have it's own format or is this used > for the common ".zip"-files? > > If I would want to complete the component, I'd try to use and maybe add > something to the unit I've already found in packages/extra/unzip. At > least the compression routines should do. Note if sb works on zlib, there still is a bugreport about OOo files and zlib in mantis (mismatch in CRC). I tried to fix it, but got stuck ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] streaming file from zip into my app
Note if sb works on zlib, there still is a bugreport about OOo files and zlib in mantis (mismatch in CRC). I tried to fix it, but got stuck Please note the following thread, as it might be the answer in this case. http://groups.google.com/group/comp.compression/browse_thread/thread/c74cb43bfee50c70/cd976c21ac7460ca?lnk=gst&q=blaszijk#cd976c21ac7460ca Darius ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] streaming file from zip into my app
Am Samstag, den 01.12.2007, 20:45 +0100 schrieb Marco van de Voort: > > Am Freitag, den 30.11.2007, 23:09 +0200 schrieb Graeme Geldenhuys: > > > On 30/11/2007, Marc Santhoff <[EMAIL PROTECTED]> wrote: > > > > > > > > But I still have questions about the code. Do I understand correctly > > > > that Graeme contributed the de-/compression code but it still has to get > > > > integrated and used by the component? > > > > > > We used the zlib (de)compression units from the tiOPF project. We > > > simply removed the references to other tiOPF units - it was pretty > > > stand-alone already so was easy. So yes, what's left is to integrate > > > that code into the TZipFile component and do some tests. The > > > (de)compression code has already been well unit tested in tiOPF, so we > > > know that part works perfectly. As I stated earlier, I have also > > > found a Object Pascal implementation of 7zip which I would like to add > > > to both TZipFile and tiOPF - I still need to double check the > > > licensing though. > > > > I'm remembering slowly, zlib is for handling gzip format, pkzip format > > is still missing. And 7zip, does it have it's own format or is this used > > for the common ".zip"-files? > > > > If I would want to complete the component, I'd try to use and maybe add > > something to the unit I've already found in packages/extra/unzip. At > > least the compression routines should do. > > Note if sb works on zlib, there still is a bugreport about OOo files and > zlib in mantis (mismatch in CRC). I tried to fix it, but got stuck I'm not, I only will start to write some code for extracting the non-compressed "meta.xml" from OOo-files for accessing (r/o currently) the document information. I need this for making a catalogue of files. If I start something in the compression area I'll ask beforehand. Thank for the warning, Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal