Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal

fpc-pascal · 2008-01

  1. class constants

    Does FPC support class constants, and if it doesn't, are there any plans to add this support? Example: type TMyClass = class begin private const MyConst = '123'; end; Jon

    Jonathan Benedicto, Anthony W.Henry, Cox
    31
  2. MaskEdit

    Hallo I need to use MaskEdit in Lazarus 0.9.24. But the MaskEdit isn't on the component palette. I think that I call the Constructor an it will work. But no :-( My code:…

    Marek Nožka, Christian U., Felipe Monteiro de Carvalho
    12
  3. Re: problem with interface (OOP not widget)

    Michael Van Canneyt, Bee, Giuliano Colla
    15
  4. FPC Zip library

    Does anyone know a zip library for fpc that can create a directory structure inside the zip? I am implementing a generic spreadsheet library, and I was considering…

    Felipe Monteiro de Carvalho, Graeme Geldenhuys, Michael Van Canneyt
    7
  5. FCL-DB/SQLDB docs started

    Leonardo and I have been working on structuring together some notes and docs for fcl-db and sqldb. I am not as experienced with sqldb yet but as I have more time there…

    L, Adrian Maier, Chris Kirkpatrick
    32
  6. The fpGUI Toolkit supports FreeBSD!

    Since revision 490, FreeBSD has been certified as a supported platform of fpGUI! :) I've used FPC 2.2.0 under DesktopBSD v1.6 (which is derived from FreeBSD 6). I've…

    Graeme Geldenhuys, Bee, Unknown author
    3
  7. distinct types and type identifier

    Below is from the Kylix 3 help. --------------------------[ copy ]------------------------------ Type identity is almost straightforward. When one type identifier is…

    Graeme Geldenhuys, ik, Peter Vreman
    4
  8. fpmake - append compiler options

    Using fpmake, how does one append a compiler option like -dSOMEDEFINE Or -xxSomeOptionNotIntegratedYet I will put this info in the FPMAKE wiki page if it is possible to…

    L, Michael Van Canneyt, Peter Vreman
    4
  9. Where to find WinProcs or equivalent unit

    Using FreePascal, I'm trying to compile an open source project written originally in Delphi 6. Some units require Winprocs, for accessing functions such as…

    Cleverson, Giuliano Colla, Marco van de Voort
    3
  10. Copying array raising exception

    The following code: var s1, s2: string; v1, v2: array of byte; begin writeln('testing strings'); s1 := 'test'; s2 := copy(s1, 2, 10); writeln('s2: "', s2, '" which…

    Joao Morais
    1
  11. Multiple inheritance is more powerful than Pascal's interfaces ?

    This question was posted to fpc-other, yesterday, but seems wrongful, in subject appropriation sense to that maillist. =========== I wish to introduce some additional…

    Andrey Gusev, Matt Emson
    2
  12. Linux daemon crashing

    Hi all, I'm trying to make a Linux daemon using FPC 2.2 I tried compiling the bundled daemon.pp (fcl-base/tests), it's an object oriented version. Compilation is ok, but…

    Rob van der Linde, Michael Van Canneyt
    2
  13. [ann] AggPas 2.4 RM3 update

    I am proud to announce I have just released a new version of AggPas, the Object Pascal port of the wonderful AGG. http://www.aggpas.org A New version of AggPas 2.4…

    Milan Marusinec, Graeme Geldenhuys, Tiziano De Togni
    4
  14. Internal Error 200212277

    I often got the error from FPC "Internal Error 200212277" when I build my applications using Lazarus, whatever the version of fpc (<=2.2 others I don't know) It happens…

    Damien Gerard, Peter Vreman
    2
  15. Populate the Format function

    I need to send an unknown amount of elements to the Format function (actually objects within a tlist decendant). I apparently cannot create a dynamic array of const, is…

    Joao Morais, Michael Van Canneyt
    1
  16. child units (was: dot within unit file name)

    Perhaps that's true with regard to name resolution, but Ada's package system has a significant feature which Pascal's module system lacks: child packages. Conceptually,…

    John Stoneham, Marco van de Voort, Tony Pelton
    8
  17. Heterogenous list of objects

    I'd like to manage a list of heterogenous objects. For instance, I have a list of objects to buy in store: cheeses (of class TCheese), soaps (of class TSoap), flowers…

    Unknown author, Damien Gerard, Michael Van Canneyt
    4
  18. debugger exited due to signal 5

    When I run the 'go' I keep on receiving this error message: 'exited with status 5.The debugger is still running.' What can I do to solve it? any idea what is causing the…

    Ezequiel Tacsir
    0
  19. FreePascal Coding style

    Is there a standard Coding style for FreePascal (Pascal) available which programmers should use ? It is for my boss :) Damien Gerard Le temps n'a pas d'importance. Seul…

    Damien Gerard, Adrian Veith, Florian Klaempfl
    32
  20. beginner in pascal for Mac

    I was used to wok with freepascal on windows. Now, I have switch to mac ( 10.5) and would like to know what are the things that I need to have it running. If anybody can…

    Ezequiel Tacsir, Damien Gerard, Den Jean
    7
  21. Problem using fpc

    Compiling using the IDE+fpc 2.2.0 works correctly on my laptop(celeron cpu), yet on my new desktop(Intel 2140 Dual Core + one SATA disk and 2 IDE disks) I consistently…

    Plato, Damien Gerard
    2
  22. PathOnly is left empty in fpc 2.2.0

    Switching from 2.0.4 to 2.2.0 I found that (in Linux environment) the field PathOnly of TSearchRec isn't filled anymore. Of course my app which relies on it doesn't work…

    Giuliano Colla
    0
  23. property or public

    I have (it would seem) a stupid question :) We have TStringList vars. User can do what he want with it. Which one is the stupid or the better way to do it ? TMyClass =…

    Damien Gerard, Joao Morais, Matt Emson
    6
  24. -Xg flag and lineinfo/lnfodwrf support

    is someone working on the -Xg lineinfo/lnfodwrf support, so that using a separate .dbg file for the debug, the software is able to show the call-stack with source line?…

    Fabio Dell'Aria, Jonas Maebe, Peter Vreman
    10
  25. find the "List index (1) out of bounds" error

    Anybody got an idea how I can trace the location of a "List index (1) out of bounds" error. I can't seem to find where this error occurs. Is there any extra fpc…

    Graeme Geldenhuys
    0
  26. dot within unit file name

    Why cant FPC use unit that has (some) dot(s) within the file name? Can FPC support it in the next release (2.2.2)? Sometimes I need to have some units for example:…

    Bee, Cesar Liws Gmail, Damien Gerard
    79
  27. Accessing ROM BIOS Font in Linux.

    A task I used to do regularly when programming in Turbo Pascal was to read the BIOS Rom Font. I first picked this up to make "Splash" Screens for Text Mode programs…

    Unknown author, Anthony W.Henry, Marco van de Voort
    12
  28. Read UTF8 Files

    Hi ! I would like to read UTF8 files. There is TFileStream, and it seems to make the job. However, I need read _big_ files (with long string) so I would like to read…

    Damien Gerard
    0
  29. Contributed unit list not avaible

    There are no entries in the contributed unit list: http://www.freepascal.org/contrib/db.php3 Marc SCALA IT Inhaber: Marc Geldon Gutenbergstr. 18 67112 Mutterstadt…

    Marc Geldon
    0
  30. ncurses extra package

    Hello everybody. Recently I asked myself if Free Pascal has support for ncurses and I've found it as an extra package. I've take a peek at the ncurses.pp file and I've…

    Guillermo Martínez Jiménez, Anthony W.Henry, Marco van de Voort
    4
  31. Notice: Possible copyright infringements in FPC code base

    The FPC team has been recently made aware that a number of routines in the Classes unit are apparently based on code originally from Borland/CodeGear. After someone…

    Michael Van Canneyt, Chris Kirkpatrick, Felipe Monteiro de Carvalho
    31
  32. Turbo Pascal mode!!

    Some time ago, I posted about this. On the TP mode FreePascal can use a function as a procedure. Florian told me that that was because of the version of the TP emulation.

    Zaka E-Lab
    0
  33. arm-linux, using unit cthreads fails

    the following program is throwing an Access Violation on my system (ARM920T, uClibc): program project1; {$mode objfpc}{$H+} uses cthreads, SysUtils; function…

    Bernd Mueller
    0
  34. HTML or RichText viewer components

    Has anybody got experience with HTML or RichText viewer components? Has anybody implemented something like this? I would like to start a HTML/RichText viewer component…

    Graeme Geldenhuys, Fabio Dell'Aria, ik
    6
  35. Classes with abstract methods

    With fpc you can get "myfile.pas(77,47) Warning: Constructing a class "xxxx" with abstract methods" I just would like to know why it is allowed to build classes with…

    Damien Gerard, Graeme Geldenhuys, Jonas Maebe
    14
  36. TStringList

    I often use TObjectLis, which is able to destroy by itself objects in its list. However, is it the same with a TStringList when an object is added with AddObject ? I…

    Damien Gerard, Michael Van Canneyt
    1
  37. libc unit and FreeBSD

    As far as I understand the 'libc' unit is a compatibility unit from the Kylix days and is only meant for linux/x86, so isn't portable. I'm trying to get fpGUI working…

    Graeme Geldenhuys, Daniël Mantione, Jonas Maebe
    8
  38. arm-linux, program does not start when using unit pthreads

    when I try to start a simple "Hello"-Program, which uses the unit pthreads, on an arm-linux target (uClibc), I get the message "not found". The program is crosscompiled…

    Bernd Mueller, Koenraad Lelong
    5
  39. What about signals.pp on win32?

    I was trying to convert a C source to Pascal. It uses signals, and I thought that these things were not available on Win platforms. Documentation talks about signals in…

    Tiziano De Togni, Michael Van Canneyt
    3
  40. Feature Request: Evalution Box instead of Calculator

    Although I would like to transfer my programming from TP to FPC, I found that I cannot test some source lines directly without writing a full program. I suggest to…

    Bill Yau, Daniël Mantione
    1
  41. Extension .pp or .pas

    I am starting a new project and I worry about filename conventions. It is possible to use .pp or .pas for fpc source files. Lazarus creates .pas files AFAIK. The project…

    Damien Gerard, Graeme Geldenhuys, John Coppens
    6
  42. counting items in a set type

    I momentarily forgot how to do this... It's late in the week. ;) I have set items in a Set type. How to I count how many items are in the set? eg: TfpgMsgDlgBtn =…

    Graeme Geldenhuys, Michael Van Canneyt
    2
  43. Heaptrc question

    I made an application and I included the heaprace unit (compiled with -gh) to check for memoryleaks. Depending on how long it runs I get more blocks allocated and freed.…

    Koenraad Lelong, Jonas Maebe
    1
  44. MPICH on Pascal

    I posted here some time ago some concerns about the MPICH on Pascal. I do remember that we had some discussion about this topic and now I'm getting back again. On the…

    Lourival Mendes, Mattias Gaertner
    11
  45. Maybe a new fpc book :)

    I recently responded to a question on the community board asking about an fpc book by recommending a Turbo Pascal book by Jeff Duntemann. His book started me out as a…

    Anthony W. Henry, Alexey Taran, Bee
    29
  46. New homepage and documentation for TSqlite3Dataset

    I updated the sqlite4fpc homepage adding documentation and some tutorials. As a bonus i also added some features. See http://www.geocities.com/camara_luiz/ Luiz

    Luiz Americo Pereira Camara, JK
    2
  47. IDE does not display compilation errors

    I am running FP 2.2.0 with V1.0.10 of the IDE on Windows XP Pro. All was working fine and then rather abruptly the IDE stopped displaying errors from the compiler. All…

    Tom La Bone
    1
  48. FPC + GTK2 : Using variable into a Widget name ?

    I use FPC with GTK2 and I have the following problem : In a loop with I'd like to be able to use the indice (incremented integer) on the name of widget to perform some…

    Unknown author, bartek, Jonas Maebe
    3
  49. serial.pp - I can't talk to modem

    I've created a simple console application for Linux and Windows. It's a port of older Win32 API code I wrote years ago. All I'm trying to do is dial a phone number and…

    Graeme Geldenhuys, Bernd Mueller, Frank McCormick
    17
  50. Lazarus + Qt4 in FreeBSD

    Hi! How to build lazarus with Qt4?? I set the interface of lazarus to Qt and try rebuild only LCL, but when it is rebuilding, it stops because it don't found qt4.pas.…

    Unknown author, Den Jean, Felipe Monteiro de Carvalho
    30