[fpc-pascal] Unsolicited messages

2010-01-31 Thread fpclist
Hi, I'm receiving unsolicited spam messages along with the normal message on this list. Is this happening to anyone else? The email address I use here is for the sole purpose of this subscription. Nino ___ fpc-pascal maillist -

Re: [fpc-pascal] sysutils.beep doesn't beep under Linux?

2009-11-21 Thread fpclist
On Saturday 21 November 2009 08:56:53 Martin Schreiber wrote: On Friday 20 November 2009 21:24:17 Jorge Aldo G. de F. Junior wrote: arent there a /dev/something device for pcspeaker ? /dev/pcspkr With X11 one can use xbell(). Martin ___

Re: [fpc-pascal] Compiler Warning: Constructor should be public

2009-11-11 Thread fpclist
On Wednesday 11 November 2009 09:22:30 Graeme Geldenhuys wrote: Flávio Etrusco wrote: Graeme, I guess the OP didn't want to reintroduce the 'Create' constructor with lower visibility, just implement a second constructor with private visiblity. It can be useful when implementing singletons

[fpc-pascal] Something I discovered using Hint directives.

2009-11-02 Thread fpclist
Hi, FPC 2.2.4 refers. Two of the four hint directives listed on page 11 of the Reference Guide for Free Pascal, version 2.2.4 don't work as described in the manual. The Experimental directive causes the compiler to stop with a syntax error. The example program listed on page 11 doesn't compile

[fpc-pascal] Experimental and Unimplemented directives

2009-10-31 Thread fpclist
Hi Guys, With reference to FPC 2.2.4 Linux, can somebody please explain how to get the compiler to compile code that uses the Experimental and Unimplemented hint directives? An expanation is given on their use on page 11 of the Reference Guide for Free Pascal, version 2.2.4, but I have no

Re: [fpc-pascal] Experimental and Unimplemented directives

2009-10-31 Thread fpclist
On Saturday 31 October 2009 10:51:24 fpcl...@silvermono.co.za wrote: Hi Guys, With reference to FPC 2.2.4 Linux, can somebody please explain how to get the compiler to compile code that uses the Experimental and Unimplemented hint directives? An expanation is given on their use on page 11

[fpc-pascal] Thread Priorities - Linux

2009-10-20 Thread fpclist
Hi Guys, The Linux tthread.inc file in FPC 2.2.4 refers: There is a constant array defined at line 55 that lists 'priority' values which I think are inverted. i.e. Currently, the listed values range from -20 to +19 and these map to tpIdle to tpRealtime. According to man nice(1), Nicenesses

Re: [fpc-pascal] Thread Priorities - Linux

2009-10-20 Thread fpclist
2009/10/20 fpcl...@silvermono.co.za: The comment on line 54 should perhaps be reworded to reflect that although it's not implemented in the current release, the user is free to use the values if he so wishes. It's not stupid, one never knows what the next guy will do with ones code. It

[fpc-pascal] What about the Foreach statement?

2009-10-20 Thread fpclist
Hi Guys, Have you considered implementing the foreach construct similar to that found in many modern languages? Regards, Nino ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Exporting user-defined conditionals

2009-10-10 Thread fpclist
Hi, According to the note in chapter 2, section 2.2.1 of the FPC Programmer's Guide, it is not possible for conditionals to be exported to other units. Is there a way around this? My Ref: Programmer's Guide for Free Pascal, Version 2.2.2 Document version 2.0 June 2008 Regards, Nino

Re: [fpc-pascal] About extPascal

2009-09-28 Thread fpclist
Did you copy the extJS files in the www root of your server? The directory must be named ext (without qoutes) Regards //--- On Monday 28 September 2009 09:57:34 yu ping wrote: thanks, I successfully compile the program,and install the fastcgi on Appache, but when I

Re: [fpc-pascal] About extPascal

2009-09-27 Thread fpclist
It's better to post your ExtPascal related questions on the ExtPascal Forum. Read the wiki start at http://code.google.com/p/extpascal/wiki/GettingStarted ExtPascal generates its units from ExtJS html docs. Regards //---

Re: [fpc-pascal] Checking Linux process existence (child or not) without OS command ?

2009-09-21 Thread fpclist
While scanning /proc may not be portable, the question asked is about checking for a running Linux process. The only way I know is scanning all directories within /proc (which as you all know are the id's of the running processes) and checking for the process file name and the process command

Re: [fpc-pascal] Writeable typed constants - what's the point?

2009-06-18 Thread fpclist
On Thursday 18 June 2009 08:51:13 Vincent Snijders wrote: Graeme Geldenhuys schreef: Hi, Recently I learned that you can have writeable typed constants. That sounds rather like an oxymoron to my. Writeable constants make no sense, is that then simply a variable? What is the use of a

Re: [fpc-pascal] Writeable typed constants - what's the point?

2009-06-18 Thread fpclist
On Thursday 18 June 2009 10:48:57 Graeme Geldenhuys wrote: I don't know (have not tested) what FPC does with mode delphi though. But seeing that this feature is just for backward compatibility, maybe it should be disallowed by default in mode objfpc as well? It also works in Delphi mode.

Re: [fpc-pascal] Writeable typed constants - what's the point?

2009-06-18 Thread fpclist
It's intersting to note that as far back as Delphi 5,(oldest I have on my system), attempting to write to a typed constant causes a left side cannot be assigned to compiler error. I guess as long as FPC compiler offers TP7 compatibility, this feature must be retained. Also, bear in mind that

[fpc-pascal] Linux USB programming using FPC

2009-06-15 Thread fpclist
Hi guys, I'm interested in exploring the USB interface from within Linux using FPC. I have looked at libusb and am aware of the functionality which it exposes. I would appreciate it if someone with USB programming experience could help by pointing me to a website or documentation that reveals

Re: [fpc-pascal] Linux USB programming using FPC

2009-06-15 Thread fpclist
Thank you. Regards, Nino /--- On Monday 15 June 2009 17:15:40 Johann Glaser wrote: Hi! Some time ago I did header translations for it. I'll attach it (libusb.pas) plus some utilities and a class wrapper (usbutil.pas),... Bye Hansi

Re: [fpc-pascal] Compiling Lazarus and LCL using rebuilt FPC RTL

2009-06-12 Thread fpclist
On Thursday 11 June 2009 08:49:03 fpcl...@silvermono.co.za wrote: Hi Guys, Assuming that a FPC RTL rebuild has succeeded, can somebody please describe the process of rebuilding Lazarus and the LCL using the new FPC RTL? Regards, Nino As the saying goes Assumption is the mother of all

Re: [fpc-pascal] Compiling Lazarus and LCL using rebuilt FPC RTL

2009-06-11 Thread fpclist
On Thursday 11 June 2009 10:05:47 Graeme Geldenhuys wrote: Assuming that a FPC RTL rebuild has succeeded, can somebody please describe the process of rebuilding Lazarus and the LCL using the new FPC RTL? Load your previous Lazarus IDE. Then do: Tools Build Lazarus This only works if

Re: [fpc-pascal] Compiling Lazarus and LCL using rebuilt FPC RTL

2009-06-11 Thread fpclist
On Thursday 11 June 2009 12:49:40 Graeme Geldenhuys wrote: I often make changes to the RTL and FCL. Many of my packages which are compiled into the Lazarus IDE depend on the FCL. I also use Linux and this process works perfectly for me. I'm off to a meeting. Will try later today. Thanks

Re: [fpc-pascal] About undocumented features

2009-06-10 Thread fpclist
Hi guys, strict is introduced for new delphi compatibility? A most welcome addition. I'm ashamed to admit that I only found out that it's been included in FPC today. I ran an old VM which has FPC ver 2.2.2 installed, and strict is supported! I'm currenly using FPC 2.2.5 What other jewels

Re: [fpc-pascal] Records as properties and Delphi compiler error

2009-06-09 Thread fpclist
Excellent explanation. Thanks Martin. Regards, Nino //*** On Monday 08 June 2009 20:33:48 Martin Friebe wrote: fpcl...@silvermono.co.za ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Records as properties and Delphi compiler error

2009-06-08 Thread fpclist
On Sunday 07 June 2009 22:19:47 Jonas Maebe wrote: On 07 Jun 2009, at 10:35, fpcl...@silvermono.co.za wrote: A high level, a class is like a record that has been modified to include functions and procedures. I know that I'm over simplifying thing here, please bare with me. The

Re: [fpc-pascal] Records as properties and Delphi compiler error

2009-06-08 Thread fpclist
On Monday 08 June 2009 19:55:00 Graeme Geldenhuys wrote: Hi Nino, Can you please refrain from quoting the *whole* previous message, when your reply only relates to one or two lines. If other developers want to read the whole context of the message thread they can look in their email history

Re: [fpc-pascal] Records as properties and Delphi compiler error

2009-06-07 Thread fpclist
Hi Jonas Thanks for the reply. A high level, a class is like a record that has been modified to include functions and procedures. I know that I'm over simplifying thing here, please bare with me. I'm trying to understand the logic employed by the creators of Delphi where they don't allow to

[fpc-pascal] Records as properties and Delphi compiler error

2009-06-06 Thread fpclist
Hi Guys, Is there a reason why the following code fails to compile in Delphi but compile in FPC? Could the reason be that FPC allows the use of global properties? Tested with Delphi 5 and up. The Delphi compiler complains about the lines: TestClass.TestRec.X := 10; TestClass.TestRec.Y := 20;

[fpc-pascal] How to emulate SetDIBits and GetDIBits in Linux

2009-05-27 Thread fpclist
Hi guys In MS Windows I use the following API functions: 1/ SetDIBits(bmap.Canvas.Handle, bmap.Handle, 0, bmap.Height, data, PBitmapInfo(bitmapInfop)^, DIB_RGB_COLORS); To set the pixels in a bitmap (bmap) using the colour data found in the specified device-independent bitmap

Re: [fpc-pascal] FindFirst...FindClose

2009-05-18 Thread fpclist
I must agree with Michael. In my experience, it doesn't matter where the findclose() is placed, as long as it's called within the scope of the findfirst(), findnext(). If findclose() is not called, all that happens is that the OS will use up file handles, which are finite in quantity on any

[fpc-pascal] PostgreSQL server side functions with FPC

2009-05-13 Thread fpclist
Does anyone have experience in developing PostgreSQL server side functions using fpc? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Missing File attribute in filutilh.inc?

2009-05-10 Thread fpclist
Hi guys Tinkering with Findfirst, Findnext functions within Linux, I discovered that the file attribute pointing to the parent dir and the curent dir (. + ..) are missing from filutilh.inc - Am I looking in the wrong place? I found that the following works; procedure Test(); const

Re: [fpc-pascal] RTL deprecated functions

2009-05-10 Thread fpclist
On Sunday 10 May 2009 11:03:00 Marco van de Voort wrote: In our previous episode, fpcl...@silvermono.co.za said: Are there replacements for the deprecated CreateShellArgV and FreeShellArgV functions and procedure that are currently defined in genfuncs.inc? Not currently. What do you need

Re: [fpc-pascal] Missing File attribute in filutilh.inc?

2009-05-10 Thread fpclist
On Sunday 10 May 2009 12:11:55 Michael Van Canneyt wrote: On Sun, 10 May 2009, fpcl...@silvermono.co.za wrote: Hi guys Tinkering with Findfirst, Findnext functions within Linux, I discovered that the file attribute pointing to the parent dir and the curent dir (. + ..) are missing from

Re: [fpc-pascal] A question or two regarding the FPC

2009-05-09 Thread fpclist
Hi Graeme You have a point. About two months ago, I had to visit the dentist because one of my filings was playing up. The diagnosis was that an old silver filing was leaking and needed to be replaced. Becase of all the hype about mercury poisoning caused by silver filings (which from my

Re: [fpc-pascal] fpselect does not work on linux

2009-05-09 Thread fpclist
According to the FPC rtl.pdf version 2.2.2 Doc version 2.1 of June 2008, page 165, states, and I quote: Description:FPSelect checks one of the file descriptors in the FDSets to see if its status changed. //- On Saturday 09

[fpc-pascal] RTL deprecated functions

2009-05-09 Thread fpclist
Hi guys Are there replacements for the deprecated CreateShellArgV and FreeShellArgV functions and procedure that are currently defined in genfuncs.inc? Regards Nino ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] A complex trouble(at least for me)

2009-05-08 Thread fpclist
Have you considered using XML to represent and structure your data? If you must do it with TStringList, you could declare a dynamic array of TStringList and instantiate the array elements at will at runtime. Also, each string entry in the TStringList can hold a pointer to any object that you

Re: [fpc-pascal] Help with the IDE

2009-05-03 Thread fpclist
If you're looking for a GUI IDE, try the Lazarus IDE. I use FPC extensively to code Linux libs and console applications. I use Lazarus as my editor/IDE, it has all I need and more. Give it a try. http://www.lazarus.freepaascal.org Nino //** On

Re: [fpc-pascal] Greetings

2009-04-28 Thread fpclist
Doug, Hi Thanks for the welcome. As a veteran Turbo Pascal user, (since ver 3.0 in 1986), I was introduced to Object Pascal in 1989 when I upgraded to TP ver 5.5, although it was quite different to Object Pascal we use today. BTW, I still sort of know my way around Turbo Vision. I've been