Re: [fpc-pascal] TSqlite3Dataset and Attach Database

2012-02-12 Thread Malcolm Poole
On 12/02/12 11:36, Malcolm Poole wrote: Can anyone tell me if it is possible to attach another database file to a TSQlite3Dataset before opening a query. OK, I worked this one out myself: I called TSQlite3Dataset.ExecSQL('ATTACH "" AS dataDB;') before calling TSQlite

[fpc-pascal] TSqlite3Dataset and Attach Database

2012-02-12 Thread Malcolm Poole
Hi, Can anyone tell me if it is possible to attach another database file to a TSQlite3Dataset before opening a query. I've tried using 'ATTACH "" AS dataDB;' as the first line of the DS SQL but I always get an error: 'dataDB is already in use'. No error is returned if I run the SQL using s

Re: [fpc-pascal] tzipper issue(zipper.pp)

2012-02-09 Thread Malcolm Poole
On 09/02/12 05:09, Tony Caduto wrote: The original app zipped the contents of a memo(using vclzip) which was saved to a stream, and the zip does not get stored in a file, rather a tmemorystream, whichis then sent to a client app via a socket. The functions 'compress' and 'uncompress' in units zC

Re: [fpc-pascal] lNet and TCP packet length

2012-02-04 Thread Malcolm Poole
On 04/02/12 14:14, Bernd wrote: 2012/2/4 Bernd: You need a robust way to determine how long your protocol message is, at which byte exactly it ends and the next message begins. The simplest way would probably be if you prepend all your messages with a length field and a checksum field to be sen

[fpc-pascal] lNet and TCP packet length

2012-02-01 Thread Malcolm Poole
I'm working on a client/server project which involves sending SQL commands from server to client and vice versa. I've been using the LTCP component for both the client and the server, which have been working perfectly during testing on the same machine and between different virtual machines, s

Re: [fpc-pascal] How to free memory allocated by C++ library

2011-06-02 Thread Malcolm Poole
On 02/06/11 13:27, Henry Vermaak wrote: On 02/06/11 13:04, Jonas Maebe wrote: On 02 Jun 2011, at 10:35, Henry Vermaak wrote: If you add cmem to the start of your uses list, all the memory operations are routed through the c memory manager. You should then be able to use Free safely for poi

[fpc-pascal] How to free memory allocated by C++ library

2011-06-01 Thread Malcolm Poole
Working from the instructions in CinFreepascal.pdf ( ftp://ftp.freepascal.org/pub/fpc/docs-pdf/CinFreePascal.pdf ) I have written an interface library to the C++ library libtesseract ( http://code.google.com/p/tesseract-ocr ). Everything appears to work well but I am unsure about how to free m

Re: [fpc-pascal] How to build Nice and Convenient Console Menu ?

2009-09-28 Thread Malcolm Poole
Graeme Geldenhuys wrote: Side note: Talking about "old style" console applications. Last week I was on leave and dug around in my garage. I found a crate of my old original software. Boxed sets of Turbo Pascal 6, Turbo C++ 3, Windows 3.1, OS/2 2.1 (CD-Rom version), OS/2 Warp v3 (diskette version

Re: [fpc-pascal] Printing the FPC documentation

2009-09-07 Thread Malcolm Poole
Michael Van Canneyt wrote: On Mon, 7 Sep 2009, Graeme Geldenhuys wrote: Michael Van Canneyt het geskryf: Well, if there is enough demand, we could definitely consider this. Does it cost anything to become a publisher on lulu.com? I thought it's free and that you only need to upload the PD

Re: [fpc-pascal] How to make a binding or wrapper ?

2005-11-15 Thread Malcolm Poole
On Mon, 14 Nov 2005 21:03 , Koenraad Lelong <[EMAIL PROTECTED]> sent: >Hi, >I'm making an application but to have it work like I want I need to make >a binding or a wrapper (is there a diiference ?) to some external >software. Are there documents that can be used to learn how to do this ? I a