Re: [fpc-pascal] Porting code from Windows D2007, missing Windows functions

2016-07-14 Thread Bo Berglund
On Thu, 14 Jul 2016 09:25:56 -0400, wkitt...@windstream.net wrote: >On 07/14/2016 08:31 AM, Bo Berglund wrote: >[...] >> But this line: >> OurZipper.Entries.AddFileEntry(ParamStr(I), ParamStr(I)); >> >> seems to add the files to zip into some kind of internal list. >> Why does it take the same arg

Re: [fpc-pascal] Resource strings, passwords etc.

2016-07-14 Thread Mark Morgan Lloyd
Lukasz Sokol wrote: On 13/07/16 08:31, Mark Morgan Lloyd wrote: Michael Van Canneyt wrote: On Tue, 12 Jul 2016, Mark Morgan Lloyd wrote: Please excuse one of my regular silly questions. Elsewhere, a (former) Delphi programmer is uneasy having found that his binaries have had embedded SQL que

Re: [fpc-pascal] Porting code from Windows D2007, missing Windows functions

2016-07-14 Thread wkitty42
On 07/14/2016 08:31 AM, Bo Berglund wrote: [...] But this line: OurZipper.Entries.AddFileEntry(ParamStr(I), ParamStr(I)); seems to add the files to zip into some kind of internal list. Why does it take the same argument twice? i found the following in the interface section of zipper.pp TZip

Re: [fpc-pascal] Porting code from Windows D2007, missing Windows functions

2016-07-14 Thread Michael Van Canneyt
On Thu, 14 Jul 2016, Bo Berglund wrote: On Thu, 14 Jul 2016 13:32:38 +0200 (CEST), Michael Van Canneyt wrote: Do you have an example of how to do the above with FPC ZLib? You can find this almost verbatim in the examples of paszlib, using the zipper unit. The one I found is this (a co

Re: [fpc-pascal] Porting code from Windows D2007, missing Windows functions

2016-07-14 Thread Bo Berglund
On Thu, 14 Jul 2016 13:32:38 +0200 (CEST), Michael Van Canneyt wrote: >> Do you have an example of how to do the above with FPC ZLib? > >You can find this almost verbatim in the examples of paszlib, using the >zipper unit. > The one I found is this (a command line utility): uses Zipper; var

Re: [fpc-pascal] Porting code from Windows D2007, missing Windows functions

2016-07-14 Thread Michael Van Canneyt
On Thu, 14 Jul 2016, Bo Berglund wrote: On Thu, 14 Jul 2016 10:09:36 +0100, Graeme Geldenhuys wrote: If you have the time, it might be worth abstracting out the zip reading functionality so you can swap out the actual compression components used as needed. This will allow your application t

Re: [fpc-pascal] Porting code from Windows D2007, missing Windows functions

2016-07-14 Thread Graeme Geldenhuys
On 2016-07-14 11:31, Bo Berglund wrote: > > function TSSCommHandler.ZipFiles(TargetFile: string; FileList: > TStringList): boolean; > var > ZW: TZipWrite; > i: integer; > FileName: string; > begin > Result := false; > ZW := TZipWrite.Create(TargetFile); I would replace that with a Facto

Re: [fpc-pascal] Porting code from Windows D2007, missing Windows functions

2016-07-14 Thread Bo Berglund
On Thu, 14 Jul 2016 10:09:36 +0100, Graeme Geldenhuys wrote: >If you have the time, it might be worth abstracting out the zip reading >functionality so you can swap out the actual compression components used >as needed. This will allow your application to change compression tools >in future, with

Re: [fpc-pascal] Porting code from Windows D2007, missing Windows functions

2016-07-14 Thread Graeme Geldenhuys
On 2016-07-14 07:22, Bo Berglund wrote: > I have to contact Synopse, even though they seem not so responsive... That seems to be the best option for you at the moment. If you have the time, it might be worth abstracting out the zip reading functionality so you can swap out the actual compression

Re: [fpc-pascal] Porting code from Windows D2007, missing Windows functions

2016-07-14 Thread Michael Van Canneyt
On Thu, 14 Jul 2016, Bo Berglund wrote: OK, that was bad news for me because I have included the unit (PasZip from Synopse) in order to make possible for my application to write zipfiles containing measurement result files. I had a Windows specific dll earlier and wanted to switch to multi-pl