Re: [fpc-pascal] Cross-platform lightweight/fpc SQLite bindings?

2005-10-26 Thread Luiz Américo
Alan Mead wrote: On both Linux and Windows, I'm using the binary libraries from sqlite.org. The bindings themselves fail to compile. It looks like a Windows-specific call is being used. It does not use any windows calls. I just tested in Slackware linux and works OK. Please use the files i

Re: [fpc-pascal] Cross-platform lightweight/fpc SQLite bindings?

2005-10-25 Thread Luiz Américo
Alan Mead wrote: I just want some fairly light-weight sqlite3 bindings that work on Linux and Windows. The code on the SQLite website works great on Windows but fails to compile on Linux. (I don't know Windows API calls... it looks like he's searching for a function name in the DLL.) Are you

Re: [fpc-pascal] Opening .dta and .key files

2005-09-15 Thread Luiz Américo
Floris Bos wrote: Hi, I've got a big problem. I've got an old program that's written in Turbo Pascal, I don't know which version. I've only got the compiled executable (.exe file), I haven't got the source code. The program works with a database that consists of .dta and .key files which repr

Re: [fpc-pascal] ParamStr(0) buggy?

2005-09-08 Thread Luiz Américo
Hans-Juergen Taenzer wrote: Hello, at the end of ParamStr(0) there is a wrong character. A small testprogramm: <--> Program t1; var i : longint ; begin Writeln( 'paramstr(0): <' + paramstr(0) + '>'); Writeln( 'Count other Parms:

Re: [fpc-pascal] MSG variable type, Windows GUI

2005-07-22 Thread Luiz Américo
Urbansound wrote: Hi, I encountered an FPC Win32, tutorial that uses the a declaration of variable "msg", declared as a MSG type, shown below. Dev-Pas IDE, FPC 2.00 gives an "error in type definition" and I find no doc references to MSG, variable type. Was this an earlier convention in FPC

Re: [fpc-pascal] string concatenation speed

2005-06-21 Thread Luiz Américo
Michael Van Canneyt wrote: Len:=0; For I:=X to Y do Inc(Len,Length(L[i])); // S string, L list. SetLength(S,Len); P:=1; For I:=X to Y do begin T:=L[i]; Len:=Length(T); Move(T[1],S[P],Len); inc(P,Len) end; This is the behavior you get using TStrings.Text

Re: [fpc-pascal] TObjectList in Contnrs in FCL (doc, usage)?

2005-06-02 Thread Luiz Américo
Michael Van Canneyt wrote: [..] However, it is not completely clear to me where the boundary is between RTL and FCL. Classes is listed under FCL, and is documented under RTL. Classes is RTL. I will update the web page. At least in subversion fixes branch, classes unit is present in both

[fpc-pascal] test please ignore

2005-01-14 Thread Luiz Américo
test ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Encrypt routine

2004-10-27 Thread Luiz Américo
Thank you all Luiz ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Encrypt routine

2004-10-25 Thread Luiz Américo
I'm looking for a simple file encryption routine (or an external library). Something like: Procedure EncryptFile(FileName,Key:String); Procedure DecryptFile(FileName,Key:String); I'd be glad with someone help Luiz ___ fpc-pascal maillist - [EMAIL PR

Re: [fpc-pascal]Re: Behavior of system.New procedure

2004-07-03 Thread Luiz Américo
Jeff Pohlmeyer wrote: After allocating a new instance for Arec with New proc, the record fields (APointer and Aint) will be always zero filled or will receive random values? You must do as if it contains the most unexpected data, and therefore initialise the fields *yourself*, and the safer is t

[fpc-pascal]Behavior of system.New procedure

2004-07-01 Thread Luiz Américo
If someone can help me with this... Take the following example: type TRec = record Apointer:Pointer; AInt:Integer; end; PRec = ^TRec; var Arec:PRec; Return:Boolean; begin New(ARec); Return:=ARec^.APointer = nil; (Always True ?) Return:=ARec^.Aint = 0; (Always True ?) end. My question