Re: [fpc-pascal] Module or Plugin or similar howto implement?

2010-07-21 Thread Eduardo
On Tue, 20 Jul 2010 10:21:01 + Mark Morgan Lloyd wrote: > Reimar Grabowski wrote: > > On Mon, 19 Jul 2010 17:13:15 +0200 > > Eduardo wrote: > > > >> I'm developing an app and need to extend its functionality via > >> external modules or plugins.

[fpc-pascal] Module or Plugin or similar howto implement?

2010-07-19 Thread Eduardo
Hello all: I'm developing an app and need to extend its functionality via external modules or plugins. Currently i'm trying to do it using dll/so but don't know if there are better methods to do implement it. TIA L ___ fpc-pascal maillist - fpc-pa

Re: [fpc-pascal] FPC Docs updated

2010-03-08 Thread Eduardo
On Mon, 8 Mar 2010 17:33:13 +0100 (CET) Michael Van Canneyt wrote: > > > On Mon, 8 Mar 2010, Eduardo wrote: > > > On Mon, 8 Mar 2010 09:06:13 +0100 (CET) > > Michael Van Canneyt wrote: <.> > > Can you post the file's url? Thanks for the wo

Re: [fpc-pascal] FPC Docs updated

2010-03-08 Thread Eduardo
On Mon, 8 Mar 2010 09:06:13 +0100 (CET) Michael Van Canneyt wrote: > > > On Mon, 8 Mar 2010, Graeme Geldenhuys wrote: > > > Michael Van Canneyt het geskryf: > >> Reason for the update is the complete documentation of the DB unit: > >> it has been finished, and adds roughly 200 pages (in PDF) t

Re: [fpc-pascal] const records passed incorrectly

2009-11-16 Thread Eduardo Morras
At 04:33 16/11/2009, you wrote: >Hi all. I am new to fpc and linux in general, though I do have a long >time experience with Delphi. > >I was writing some code basic system (using the libc library) when I >ran across the following problem .. some code: > >const > libc = 'libc.so.6'; > >type > TT

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-30 Thread Eduardo Morras
nologies, etc.. In some weeks i'll try to get something useful and share it. Thanks a lot to everyone. Eduardo ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Servlet server for Fpc apps

2009-03-27 Thread Eduardo Morras
At 22:00 27/03/2009, you wrote: Eduardo, the short answer is no, it wouldn't work. Tomcat doesn't understand binary files, it only "executes" Java classes. Your options are: 1) CGI. 2) Apache Modules. 3) Your own web server. I will opt for the 3rd. then. All in pasca

[fpc-pascal] Servlet server for Fpc apps

2009-03-27 Thread Eduardo Morras
Hello: I want to ask (and know) if i can use apache-tomcat to serve servlets developed with freepascal. If not, is there a similar server for fpc? Note that i want/need servlet like in java and other languages, not a propetary format or cgi or anyother. P.S. Yes, i have googled but for servl

Re: [fpc-pascal] very simple text indexing system

2009-01-27 Thread Eduardo Morras
At 07:47 27/01/2009, you wrote: Hi, I would like to implement a very simple text indexing system (full text search) for one of our products. I know there are a few products our there I can use in combination with RDBMS etc... But I would like to keep the 3rdParty components down to a minimum. S

Re: [fpc-pascal] Maybe one stupid question

2009-01-23 Thread Eduardo Morras
At 01:10 23/01/2009, you wrote: Hello FPC-Pascal, I'm using FPC 2.2.2 running over WinXP SP2. Are there any technical reasons that expains that a program runs faster using all checks ( I/O, Range, Overflow, Stack and Verify calls ) with optimization level 1 and using heaptrace, than the same one

Re: [fpc-pascal] fpimage glow effect

2008-10-28 Thread Eduardo Morras
At 17:37 28/10/2008, you wrote: How can I create a glow effect around text with fpimage? DOn't know, you can check teh Vampyre project at http://imaginglib.sourceforge.net It's a image library for FreePascal/Lazarus written in ObjectPascal. Mattias HTH No virus found in this outgoing m

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Eduardo Morras
At 16:00 28/10/2008, you wrote: On Tue, Oct 28, 2008 at 4:26 PM, Eduardo Morras <[EMAIL PROTECTED]> wrote: > > Well, there are some ones. There is the PAQ family that are the best now. Of > course they are research compressors mostly written in C++ but they exist. > The

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Eduardo Morras
At 11:38 28/10/2008, you wrote: On Tue, Oct 28, 2008 at 12:12 PM, Eduardo Morras <[EMAIL PROTECTED]> wrote: > > In fact deflate/zip is 18-19 years old and there are lot of better > compression algorithm, like LZX. I think there is one implemented in Pascal > (ABC if memory

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Eduardo Morras
At 07:01 28/10/2008, you wrote: On Mon, Oct 27, 2008 at 8:40 PM, Eduardo Morras <[EMAIL PROTECTED]> wrote: > > Don't know what's your question (perhaps you posted on wrong list) but chm > uses LZX compression algorithm internally. I was about to mention that as well. :

Re: [fpc-pascal] helpsystem, some numbers

2008-10-27 Thread Eduardo Morras
At 15:19 27/10/2008, you wrote: This morning I did a bit research after the help files, I hope it sheds some light on the WHY for the recent CHM efforts: html html help packagesize on disk(k) real size(k) chm(k) rtl38816 22096 1

[fpc-pascal] Install in FreeBSD7 amd64

2008-06-08 Thread Eduardo Morras
Hello: I have upgraded my computer from x86 32 bits Freebsd 6.2 to a new amd64 with FreeBsd 7.0 64 bits (both, os and processor to 64 bits). When i try to install fpc i get an error saying that it can't be installed in 64 bits. Is this a known issue? Is there a 64 bits fpc? TIA

[fpc-pascal] Switch from string to ansi/wide

2008-05-05 Thread Eduardo Morras
Hello: I writing an app that works with text. I use strings and define the output file as file of string. All works fine but it's limited to 255 characters. Now i changed to ansistring (every from "string" to "ansistring") and compiles without any problem, but when i open the text file i get

Re: [fpc-pascal] transparent windows on X11

2008-03-17 Thread Eduardo Morras
At 15:17 17/03/2008, you wrote: Hi, Anybody know how to use Xlib API to create transparent windows? This is for use with fpGUI Toolkit. For example. I have a Label component (which is actually a mini window) and have to always specify and paint a background color. If I don't, I see all kinds o

Re: [fpc-pascal] NULL pointer to array of integer

2006-09-13 Thread Eduardo
At 18:37 13/09/2006, you wrote: On 13 Sep 2006, at 14:00, Eduardo wrote: I remember that on c a null pointer has value 0, but in ansi pascal it has value 23. The value of nil is not defined in the ISO Ansi Pascal standard. In FPC, nil = pointer(0) on all currently supported platforms, but

Re: [fpc-pascal] NULL pointer to array of integer

2006-09-13 Thread Eduardo
At 10:04 13/09/2006, you wrote: Hi, while fiddling with some C'isms I've stumbled over a function in a library expecting an array of integers *or* a NULL pointer. How can I hand over any NIL or 0 or something equal to NULL in C that is accepted by fpc? Using NIL or 0 does not work certainly...

Re: [fpc-pascal] Caching a big file on memory

2006-09-11 Thread Eduardo
At 19:54 11/09/2006, you wrote: I don't tested this with large files, but why don't you use TMemoryStream: var myFile: TMemoryStream; begin myFile := TMemoryStream.Create; myFile.LoadFromFile('c:\myfile'); ... end; Not need OOP for do it, i need as much speed as i can and using a pla

Re: Re[2]: [fpc-pascal] Caching a big file on memory

2006-09-11 Thread Eduardo
At 20:02 11/09/2006, you wrote: > var > a : array[1..1] of byte; //100MB > Operating system is WinXP SP2. AthlonXP 2000+ and 1.25 GBRam Both with 2.1.1 rev. 4609 and 2.0.4rc2: {$MODE OBJFPC} var a: array[1..1] of byte; i: integer; begin write('('); for i:=1 to 1000

Re: [fpc-pascal] Caching a big file on memory

2006-09-11 Thread Eduardo
At 18:30 11/09/2006, Jonas wrote: On 11 Sep 2006, at 18:09, Eduardo wrote: I have a little problem, i participe in the 'Large Compression Benchmark' (http://cs.fit.edu/~mmahoney/compression/text.html) and need to cache the whole enwik8 file (100MB) on memory but whe

[fpc-pascal] Caching a big file on memory

2006-09-11 Thread Eduardo
Hello: I have a little problem, i participe in the 'Large Compression Benchmark' (http://cs.fit.edu/~mmahoney/compression/text.html) and need to cache the whole enwik8 file (100MB) on memory but when i try to allocate space for it i get a compiler error, saying that maximum is 64MB (6710886

[fpc-pascal] problems with colors

2006-08-22 Thread Eduardo Jaime Quiros Batres
PENTIUM2 PENTIUM3 PENTIUM4 Supported FPU instruction sets: SOFT X87 SSE SSE2 This program comes under the GNU General Public Licence For more information read COPYING.FPC Report bugs,suggestions etc to: [EMAIL PROTECTED] -- Eduardo Jaime Quirós Batr

Re: =?koi8-r?Q?Re[2]=3A_[fpc-pascal]_Offline_documentation_for_Extra_Packag es?=

2006-08-02 Thread Eduardo
At 15:39 02/08/2006, you wrote: > These are Pascal interfaces to C packages. In general there is no > Pascal documentation available. However, since they are straight > translations the C documentation should apply almost literally to the > Pascal versions. > Jonas Is there a note/memo about typ

Re: [fpc-pascal] Comparing version numbers

2006-06-02 Thread Eduardo
At 01:41 03/06/2006, you wrote: > Simple, just a variation of your first try. Use ASCII comparation, > but all parts must have the same digits, in your case, you padd the > 3rd part (or any part) with any letter down the ascii code of 0, for > example ' ' (a space) This was a brilliant idea as f

Re: [fpc-pascal] Comparing version numbers

2006-06-02 Thread Eduardo
At 23:03 02/06/2006, you wrote: I have tried about a dozen different algorithms now, and I admit to being stumped because everyone I've tried fails SOMEWHERE. The task before me is to compare version numbers of software packages and determine which is higher. First try was to simply do a string

Re[4]: [fpc-pascal] a suggestion...

2006-06-01 Thread Eduardo
I tried to benchmark a little. Archivers were limited to 512 Mb. Timings only in the second test. Precision is kept 1 Mb/10 seconds intentionally. There are many comprehensive benchmarks, but I tested nearly the last versions. OpenOffice 2.0.2 sources, 1209 Mb (there are several .gz and

[fpc-pascal] Altivec unit?

2006-01-18 Thread Eduardo
Hello: Just ask if there is any ppcaltivec unit for freepascal, like mmx. If not i'll may convert the c ones from gcc so i can use the freevec lib under pascal. And a related question, does compiler understand inline ppc asm? TIA --

Re: [fpc-pascal] CASE

2005-11-08 Thread Eduardo
At 18:22 08/11/2005, you wrote: Any hints? Use 2.1.1 Peter version 2.1.1 [2005/11/08] for powerpc Same result, Peter :| P Davidson Perhaps this code can do the trick, but don't know if is easily integrable in fpc ppc codegenerator, you can adapt it a bit if you want ** IN r3 Value to

Re: [fpc-pascal] CASE

2005-11-08 Thread Eduardo
At 18:07 08/11/2005, you wrote: Jump by offset label number? I don't understand it. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal Sorry Eduardo, am not knowledgeable of com

Re: [fpc-pascal] CASE

2005-11-08 Thread Eduardo
May be having case statement problem. App has case statement with 146 sequential labels. They are in order, from a defined type. The assembler output is scanning each label, where it seems a jump would be more efficient. This :) case L3o3.FormType of 1 : begin end 2 : begin end

Re: [fpc-pascal] CASE

2005-11-08 Thread Eduardo
At 04:42 08/11/2005, you wrote: May be having case statement problem. App has case statement with 146 sequential labels. They are in order, from a defined type. The assembler output is scanning each label, where it seems a jump would be more efficient. I don't understand well what you have:

Re: [fpc-pascal] Re: KeyPressed

2005-08-22 Thread Eduardo
At 21:45 22/08/2005, you wrote: On Mon, 22 Aug 2005, Lowell C. Savage wrote: > > Some, perhapsI ran into this problem when I was still compiling the > program as a pure Pascal program. (I had the interfaces to other languages > commented out.) > > I'm using: CRT, IO, DOS, Video, Printer,

Re: [fpc-pascal] selecting target processor

2005-06-20 Thread Eduardo
At 15:36 20/06/2005, you wrote: On 20 jun 2005, at 09:59, Marc Santhoff wrote: So it should work: I'm using "-dRELEASE" for releasing and my fpg.cfg has standard "- OG2p3" and "-Xs". Testing is done with "-XX -B". Yes, it should. Can you figure out which instruction it is that causes this

Re: [fpc-pascal] RICE Encoding in Pascal

2005-02-01 Thread Eduardo
At 13:59 31/01/2005, you wrote: Hello, I search the RICE encoding (for lossless compression... this encoding is used in Monkey Audio, FLAC and many others formats), ported always in Pascal, or maybe a documentation who explain how the RICE compression works... In fact, I don't like C/C++ and I have

Re: [fpc-pascal] problem with array of string

2004-12-21 Thread Eduardo Morras
At 22:15 20/12/2004, you wrote: I have problem with two dimension array of string my program: procedure testlinie; var linie : array[0..1,0..100] of shortstring; i,ii : integer; begin fillchar(linie,sizeof(linie),0); for i := 0 to 1 do begin for ii:= 1 to 10 do begin linie[i,ii

[fpc-pascal] Question with 2 different querys with Firebird

2004-10-15 Thread Eduardo Lopez
like: Query.SQL.Text := 'Select field_a, field_b, from table2'; The question is: What I am missing (or ignoring) to reset the query? Actually to solve my problem I'm creating another query (Query2 :=TIBQuery.Create(nil)) and using it, but I must create a

Re: [fpc-pascal]Graphics cards, VGALIB

2004-09-06 Thread Eduardo Morras
At 11:19 06/09/2004, you wrote: On 6 sep 2004, at 09:28, Marco van de Voort wrote: Especially in case the linker supports multiple namespaces and one package needs symbol X from library A, and another one from library B. There is always some directed graph in dependancies that can be translated int

Re: [fpc-pascal]Two simple dynamic arrays questions

2004-07-28 Thread Eduardo Morras
At 19:48 28/07/2004, you wrote: (2) There is no way, I supposed, to switch the array indexes to start at 1 is there? I ask not from intrasigence but because I am using matricies and it rains on my elegance parade to have to perform the trivial translation each time I want to access an element usin

Re: [fpc-pascal]Re: [fpc-pascal]Re: [fpc-pascal]Can't find lmysqlclient What I'm missing? SOLVED!!

2004-06-08 Thread Eduardo Lopez
client rpm, when I do it, then I update then fpc.cfg to include then /usr/lib/mysql and ... voilá... all working. :-) Thank you for your patience... Eduardo. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]Re: [fpc-pascal]Re: [fpc-pascal]Can't find lmysqlclient What I'm missing?

2004-06-07 Thread Eduardo Lopez
sqlclient lmysqlclient.so libmysqlclient libmysqlclient.so mysqlclient mysqlclient.so but don't work. I'm trying now on a Fedora Core 1 and I get the same error. In my home directory a have a folder named test and inside it the testdb.pp I think that I'm doing something stu

[fpc-pascal]Re: [fpc-pascal]�at I'm missing?

2004-06-07 Thread Eduardo Lopez
Michael Van Canneyt escribiÃ: On Mon, 7 Jun 2004, Eduardo Lopez wrote: Hello all: I'm just trying to compile the testdb.pp and I get the following error: ln -s libmysqlclient.so.10.0.0 lmysqlclient This should be: ln -s libmysqlclient.so.10.0.0 lmysqlclient.so Michael. Thank you

[fpc-pascal]Can't find lmysqlclient ¿What I'm missing?

2004-06-07 Thread Eduardo Lopez
ng that I can't see... :-/ Any idea? Thanks in advance... Eduardo ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal]Libglade and fpc

2004-02-13 Thread Eduardo Lopez
Helllo all: I'm just starting to extend some examples about fpc, Gtk, MySql and Firebird. Like the samples I'm writing all the code to create the windows and widgets. It's possible to implement Libglade in fpc? Anyone has do it? Thanks in advance.

Re: [fpc-pascal]Newbie question: fpc + gtk + clist SOLVED!!

2003-12-19 Thread Eduardo Lopez
t read the correspnding row selected -using my variable- and fill the entry widgets... Regards... Eduardo Eduardo Lopez wrote: Hello all: 1st. Sorry about my english :-) I'm trying to develop an GUI application with fpc and gtk. And I begin exploring and extending the examples. I'm worki

[fpc-pascal]Newbie question: fpc + gtk + clist

2003-12-16 Thread Eduardo Lopez
connect a signal to the Change button, but I need to know the row that is selected in the list to read his data. The secuence is: 1- The user select a row with click ( or just browsing the list ) 2- The use click in the button Change/Delete to update the record. Thanks in advance

Re: [fpc-pascal]FP newbie

2003-11-14 Thread Eduardo Morras
But some Mac user (/me smells a Jonas) will probably correct me :-) Yes, you are true. Apple contracts (is this the correct verb?) N.Wirth in 1982-3 to develop an Object Pascal language/compiler. MacOS was written in pascal and assembler from version 0 to 6.x.; System 7.0 and 7.1 was a mix of

[fpc-pascal]Problem linking TESTIB.PP

2003-07-18 Thread Eduardo Lopez
Hello all: I'm trying to compile te TESTIB.PP and I get the following error: Linking testib.exe c:\pp\bin\win32\ldw.exe: cannot find -ldl testib.pp(89,1) Error: Error while linking Closing script ppas.bat What I'm doing wrong? Thanks in advanc

Re: [fpc-pascal]/usr/lib/fpc/1.0.6/ppc386 vs. /usr/bin/fpc vs. fpc.cfg?

2003-06-19 Thread Eduardo Morras
ewhere left on your system from a previous version. I can enable range checking in the source file with {$R+}, is there a similar solution for -gl? No. Just put in the uses clause the unit LineInfo the first one. Las personas se dividen en tres grupos, los que saben contar y los que no.

Re: [fpc-pascal]Runtime error 87

2003-06-16 Thread Eduardo Morras
At 12:00 11/06/2003 +0200, you wrote: The FreePascal User's guide has a list of the possible run time errors. But what if you encounter an error that is not on the list? Right now I would like to know the meaning of run time error 87. (Generated by a win32 program and possibly caused by a lot of ca

Re: [fpc-pascal]GetMem crazy problem

2003-06-10 Thread Eduardo Morras
At 14:22 10/06/2003 -0700, you wrote: Is 1.0.8 available? I just checked www.freepascal.org and it seems like 1.06 is the current release. You might try that version and see if the problem goes away. -Alan 1.07 and 1.08 are updates to 1.06. You must download them and install by hand. In a few

Re: [fpc-pascal]GetMem crazy problem

2003-06-10 Thread Eduardo Morras
again. Perhaps i use them badly, but the main problem for me was the not allocation of memory for them. Also i use fpc 1.08 Thanks --- Alan Mead <[EMAIL PROTECTED]> wrote: > Eduardo, > > I did not follow your example, but are you aware of the "growing >

[fpc-pascal]GetMem crazy problem

2003-06-10 Thread Eduardo Morras
Hello: I've got a weird problem with getmem. I have check everything (i think) but i can't get it work. Heaptrc says it's all ok, but when i de-comment the next three lines ( the freemem also ), all fails GetMem(sDicc,sizeof(rtBusqBidimen)); GetMem(ppmv,sizeof(rtMotionVector))

Re: [fpc-pascal]Run Time Error codes

2003-01-29 Thread Eduardo Morras
At 17:51 29/01/2003 +0100, you wrote: At 19:56 28/01/2003 +0100, you wrote: On zaterdag, jan 25, 2003, at 02:34 Europe/Brussels, Eduardo Morras wrote: Does anyone knows what means the next error codes: 998, 313. And where find information about the applications exit code? Such

Re: [fpc-pascal]Run Time Error codes

2003-01-29 Thread Eduardo Morras
At 19:56 28/01/2003 +0100, you wrote: On zaterdag, jan 25, 2003, at 02:34 Europe/Brussels, Eduardo Morras wrote: Does anyone knows what means the next error codes: 998, 313. And where find information about the applications exit code? Such strange error codes are error codes that

[fpc-pascal]Run Time Error codes

2003-01-24 Thread Eduardo Morras
Hello: Does anyone knows what means the next error codes: 998, 313. And where find information about the applications exit code? I'm under win32 platform, fpc 1.0.6 using gdb as debugger TIA Alien.org contacted...waiting