[fpc-pascal] constructor overloads - only class methods can ..?

2008-03-15 Thread Wolfram Kläger
>From time to time I get the error, "only class methods can be referred with >class references". While always managed to get a workaround, I am still not >able to understand exactly when this happens and why. Example: type TmyClass = class(TObject) private .. public constructor Cr

Re: [fpc-pascal] How to initialize a "Text" variable?

2008-03-15 Thread Jonas Maebe
On 15 Mar 2008, at 12:34, Felipe Monteiro de Carvalho wrote: I have the following variable that I need to initialize: yyinput: Text; I searched, but I can't find anything that explains what this is, or how to initialize it. Is the Text type the same as TextFile? Yes (although more the other

Re: [fpc-pascal] Firebird UDF

2008-03-15 Thread Stephano
nothing todo... ok restart: library pudf; {$mode objfpc}{$H+} uses Classes, p_func in 'p_func.pas'; exports pround name 'p_round'; {$R pudf.res} begin // DECLARE EXTERNAL FUNCTION pround // DOUBLE PRECISION, INTEGER // RETURNS DOUBLE PRECISION BY VALUE // ENTRY_POINT 'pudf_pround

Re: [fpc-pascal] unit

2008-03-15 Thread Marco van de Voort
> Why I can't to run unit - programa say: 'Illegal unit name' I try Fps > 0.9.6and 0.6.4 program versions. Units are not runnable, FPC versions before 1.0 are from the 1900s. Maybe you mean the version of something else? If on Linux, your source file must be either lowercase, or match the casing

Re: [fpc-pascal] Simple X11 program

2008-03-15 Thread Felipe Monteiro de Carvalho
On Fri, Mar 14, 2008 at 12:56 PM, Rainer Stratmann <[EMAIL PROTECTED]> wrote: > Exists there documentation of the (for example) XNextEvent's ? http://www.google.com/search?hl=en&safe=active&client=firefox-a&rls=org.mozilla%3Apt-BR%3Aofficial&hs=jNU&q=xlib+XNextEvent&btnG=Search -- Felipe Montei

[fpc-pascal] How to initialize a "Text" variable?

2008-03-15 Thread Felipe Monteiro de Carvalho
Hello, I have the following variable that I need to initialize: yyinput: Text; I searched, but I can't find anything that explains what this is, or how to initialize it. Is the Text type the same as TextFile? I would like to set this variables to the contents of a file, so I tryed the following

Re: [fpc-pascal] unit

2008-03-15 Thread Jonas Maebe
On 14 Mar 2008, at 21:30, europietis N wrote: Why I can't to run unit - programa say: 'Illegal unit name' Make sure the unit name matches the file name that contains it. I try Fps 0.9.6and 0.6.4 program versions. These are quite strange versions. FPC 0.6.4 was released somewhere in 1995

[fpc-pascal] unit

2008-03-15 Thread europietis N
Why I can't to run unit - programa say: 'Illegal unit name' I try Fps 0.9.6and 0.6.4 program versions. thanks ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

RE: [fpc-pascal] Firebird UDF

2008-03-15 Thread Codebue Fabio - P-Soft
I learn about all your tips... but nothing todo. I try to summarize I'm using firebird 2.0.3 in windows vista environment. pudf was compiled with fpc 2.0.4 and created with lazarus 0.9.22 project file library pudf; {$mode objfpc}{$H+} uses Classes, p_func in 'p_func.pas'; export

Re: [fpc-pascal] Simple X11 program

2008-03-15 Thread Graeme Geldenhuys
On 14/03/2008, Rainer Stratmann <[EMAIL PROTECTED]> wrote: > > How is it possible to draw (put) Bitmaps in this Window? > Here is a 800x600 pixel Bitmap (array[0..800x600-1] of dword) which I want to > put in the Window (or parts of the Bitmap). With 24 bit color depth (32 > bit/pixel). > > Ex

Re: [fpc-pascal] Simple X11 program

2008-03-15 Thread Graeme Geldenhuys
On 14/03/2008, Rainer Stratmann <[EMAIL PROTECTED]> wrote: > > Thank you very much, it works! > That's what I was looking for. That example actually shows quite a lot of features in one little program. > How is it possible to draw (put) Bitmaps in this Window? > Here is a 800x600 pixel Bitmap