ZipFile problem lazarus / 8-Other ---------------------------------------------------------------------- Avram · 2007-02-07 23:47 Hi, I have downloaded ZipFile component from here, and installed how it`s written in wiki. Now, I have three issues: 1) when i try to open autocomplete after ZipFile1.[ctrl+space] it opens crc unit in new editor tab and displays following error: Quote/usr/share/fpcsrc/packages/extra/palmunits/crc.pp(44,75) Error: expected end., but syscall found and the focus is set on: Code: [Select]function Crc16CalcBlock(const bufP: Pointer; count, crc: UInt16): UInt16; |syscall sysTrapCrc16CalcBlock; (the | is position of cursor) 2) example needs package MB_Package (>=0.0). As it was suspicious (version equal or greater to 0.0???) I've removed it from required packages and example started successfully, but: 3) example would not run until I copied all files from component into example directory (dzlib.pas tiCompress.pas tiCompressNone.pas tiCompressZLib.pas tiConstants.pas tiDefines.inc tzipfile.lrs tzipfile.xpm zipfile.pas zipfilepkg.pas) Why is this happening? How can I use this component normally? (just drop it to form and use it)  :cry: ---------------------------------------------------------------------- Avram · 2007-02-08 00:15 Hm, I think I have solved problem 3) by adding "$(LazarusDir)/components/;$(LazarusDir)/components/zipfile/" in Paths in Compiler options dialog... now 1st problem still exists I would not need this if I would know how to use component I have tried: Code: [Select]ZipFile1.FileName='test.zip'; ZipFile1.Activate; if OpenDialog1.Execute then ZipFile1.AppendFileFromDisk(OpenDialog1.FileName, ExtractFileName(OpenDialog1.FileName)); ...and this "works" - the file is being created but it seems corrupted - can't view contents of archive ---------------------------------------------------------------------- mrdebug · 2008-06-25 10:29 Could you use FileZip on Linux?