Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2010-07

  1. Working Free Pascal android JNI example

    I've done a working Free Pascal android JNI example (with working .apk for current ARM-based Android device of the second device generation (because with VFPv3, so…

    Benjamin Jan Alexander Rosseaux, Felipe Monteiro de Carvalho, Florian Klämpfl
    42
  2. methods of an object to create others objects

    We can to use methods of an object to create others objects, or this is a bad programming practice? eg: var obj1, obj2: TmyObject; begin obj1 := tobj1.create; //ok obj2…

    Marcos Douglas, Alberto Narduzzi, Andrew Brunner
    83
  3. Ideas for namespace implementation

    As I stated in another thread, namespaces are not perfect, but they do work, and they do greatly reduce the chances for unitname or classname conflicts. Other languages…

    Graeme Geldenhuys, Anthony Walter, Joël Thieffry
    41
  4. Property Tags

    Hello ! I'm writing a ActiveRecord system for Freepascal (Something similar to what RubyOnRails do), and i am having some problems (I'm not following MVC logic, more of…

    Jorge Aldo G. de F. Junior, leledumbo, Marco van de Voort
    7
  5. Help to create a Makefile to build a shared library on Linux

    Can you help me creating a Makefile to replace this ugly "build.sh" script ? # cat build.sh #!/usr/bin/env bash PROJECT=nepudf UIB_ROOT=../uib/source MACHINE_TYPE=`uname…

    Pierre Y., Codebue Fabio - P-Soft, Zaher Dirkey
    2
  6. Two questions about Pascal

    Two "simple" questions. 1) Is there any way in Pascal to write something like this (pseudocode): With Result:=Object.Create() do begin Free; end; Which will be written…

    José Mejuto, Jonas Maebe, Luca Olivetti
    3
  7. Method pointer to a static method of an object?

    I want to make a reference to a static method of an object, but keep getting error messages. ================================================================ program…

    Jetcheng Chu, Graeme Geldenhuys, Michael Van Canneyt
    2
  8. Licensing issue: Subclassing

    There was a question raised in Russian FPC forum about whether LCL license (modified LGPL) should be applied to a subclass of LCL class: TMyButton = class(TButton) This…

    Vladimir Zhirov, Florian Klaempfl, Jonas Maebe
    4
  9. installing or using multiple versions of FPC on linux

    Currently I have the latest svn of FPC installed (make install) which results in all files being installed where they belong, the binary being in the search path and…

    Bernd Kreuss, Jonas Maebe, Lloyd Park
    4
  10. package keyword

    Hm, this may be one silly question... but I couldn't find docs on it, I hadn't come accross it before... A file that should compile can start with: 'unit xxx;' 'program…

    Martin, Graeme Geldenhuys, Marco van de Voort
    2
  11. questions mark linux and windows

    I wrote this program. var c,d: char; Begin c:=#$00B1; Writeln(byte(c)); Writeln(c); d:=#$0080; Writeln(byte(d)); Writeln(d); End. When I compile on Linux, the variable…

    Luis Fernando Del Aguila Mejía, Jonas Maebe
    2
  12. A check before setting a property (or the cost of a call instruction)

    In Lazarus i just committed the following code: if Alignment FDataLink.Field.Alignment then Alignment := FDataLink.Field.Alignment; but i could do also: Alignment :=…

    Luiz Americo Pereira Camara, Jonas Maebe
    1
  13. How choose units names?

    How choose units names? I was thinking what are the best names to my units to not to conflict with the units of the FPC, Lazarus, and others frameworks or libs. e.g.…

    Marcos Douglas, Graeme Geldenhuys, Guillermo Martínez Jiménez
    9
  14. How to set a CORBA interface property (tkInterfaceRaw) through RTTI

    I've managed to set a COM interface property (tkInterface) through RTTI using SetInterfaceProp. But i could not find a way to set a CORBA interface property…

    Luiz Americo Pereira Camara
    1
  15. Module or Plugin or similar howto implement?

    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…

    Eduardo, Inoussa OUEDRAOGO, Mark Morgan Lloyd
    7
  16. Extending an enumeration

    If I have a class with a property Phase: TrrPhase where TrrPhase is an enumeration such as (rrQuiescent, rrInitialised), is there an elegant way of extending the…

    Mark Morgan Lloyd, Jetcheng Chu, Thierry Coq
    5
  17. Initialize the object (not class)

    I have used object to make more easy, not need to create or free it, MyObject = object private FProp1: integer; public Prop1: integer read FProp1 write FProp1 procedure…

    Zaher Dirkey, Jonas Maebe
    2
  18. redirecting stdout

    is it possible to redirect stdout so that everytime I call writeln() the output is sent to a function that accepts a string instead of stdout? I have googled for some…

    Bernd, Jetcheng Chu, Michael Van Canneyt
    8
  19. How to get address of MyFunction in MyFunction?

    to get address of function I can use @MyFunction, but if I use it within MyFunction - I get address of Result. How can I get address of current function? (It's not for…

    Žilvinas Ledas, Jonas Maebe
    5
  20. fpweb tutorial

    Does anyone know where I can find documentation or a tutorial about fpweb? Also, is the version included in FPC 2.4.0 very old and I should really use the FPC SVN code…

    Felipe Monteiro de Carvalho, ABorka, Luiz Americo Pereira Camara
    17
  21. "class" methods for objects

    while converting bullet physic code to native fpc, i would find it handy to have something like "class" methods for objects. (Methods without self pointer) (It would…

    Helmut Hartl, Jonas Maebe, Michael Van Canneyt
    7
  22. gdb Segmentation Fault - $D- does not help?

    I am still struggling with the Segmentation Fault that gdb produces when loading my app's symbols on Mac OS X. I inserted $D- at the top of a few hundred units, but the…

    Tobias Giesen, Jonas Maebe
    1
  23. fpc-passrc expression parser (issue #16914)

    Sorry, I can't write to the resolved issue (without re-opening) it. That's how it was originally written. However, I personally prefer to keep less subclasses. I would…

    dmitry boyarintsev, Marco van de Voort, Michael Van Canneyt
    6
  24. Search Engine friendly CGI web apps and pages

    Google and probably most other search engines don't index website that have URL's in the following format: http://localhost/mycgi?action=myaction Basically parametrized…

    Graeme Geldenhuys, Felipe Monteiro de Carvalho, Michael Van Canneyt
    7
  25. Lazarus Snapshots Intel Mac with FPC 2.4.1?

    I'm having serious problems with bugs in FPC 2.4.0 on Intel Mac OS X. Would it be possible to post snapshots with 2.4.1? Tobias

    Tobias Giesen, Jonas Maebe, Marc Weustink
    11
  26. writeln: FPC runtime race conditions in external C threads

    While using an external C framework (Mac OS X, discrecording OS framework, FPC 2.4), I noticed that my FPC console app crashes when I use writeln's in both C threads…

    Alexander Grau, Jonas Maebe, Michael Van Canneyt
    16
  27. Tool to create C-Header from Pascal source?

    Hi! Is there a tool to generate C headers from Pascal library source files? The Delphi compiler can do this, but I would need a solution for Linux. If there's not such a…

    Matthias Klumpp, dmitry boyarintsev, Jonas Maebe
    3
  28. 2.5.1: Ansi string constants vs Unicode

    I've got 2.5.1 now. I have a string constant like this: const Vec:AnsiString=#$094#$06D; This should just be 8-bit data with no conversion. But I get "Error:…

    Tobias Giesen, dmitry boyarintsev, Jonas Maebe
    5
  29. Mac OS X gdb: Segmentation Fault loading my project

    I am back developing for Mac! My compiled application with symbold is 93.5 MB in size and gdb cannot load it, so the debugger in Lazarus fails too. This happens on both…

    Tobias Giesen, Graeme Geldenhuys, Jonas Maebe
    9
  30. TFPTimer: how can I use it to closse a window?

    I've made a really simple application, that shows a simple dialog box with current time. I want it to close itself after 15 seconds. I tried to use TFPTimer, but there…

    Unknown author, Graeme Geldenhuys
    1
  31. Test

    Florian Klaempfl
    0
  32. Any drawbacks with -Fcutf8 param

    If I pass -Fcutf8 to all my projects, even though the source code in units are plain ASCII, is there any negative/drawbacks regarding FPC and how it processes my units?…

    Graeme Geldenhuys, Jonas Maebe, Tom Carly
    4
  33. Converting a graphical DOS program to fpc

    I'm wanting to convert a Turbo Pascal program to fpc, to run (ultimately) under linux, although I'm actually developing on a mac, and using virtualbox to run ubuntu. The…

    Simon Webster, Bart, Graeme Geldenhuys
    3
  34. question about changing default ASCII table in the fpc 2.2.0 IDE

    I would like to print a square root symbol using write(chr(251)); as I could before SP3 for XP was installed on my PC. Currently am getting a superscript 1 rather than…

    Noel and Marie, Michael Van Canneyt, Tomas Hajny
    6
  35. FastCGI and FpWeb

    I've created some CGI applications with fpWeb with success. I tried to create a FastCGI application (a simple hello world) but when a request is done the program start,…

    Luiz Americo Pereira Camara, Michael Van Canneyt
    2
  36. MSEide+MSEgui version 2.4rc1

    MSEide+MSEgui rev. 2.4rc1 has been released: http://developer.berlios.de/project/showfiles.php?group_id=11520 Martin

    Martin Schreiber
    0
  37. access violation somehow related to dlopen'ing libssl

    Greetings once again! I've run into a little bit of a strange problem that I'm hoping someone here will be able to help me figure out. I'm using, as I suspect some of…

    Seth Grover, Michael Van Canneyt
    3
  38. How to include a Windows Version resource in a fpc compiled DLL?

    I have recently ported over a DLL from Delphi to fpc, so we can offer the DLL as a shared library on 32/64 bit linux, as well as 64-bit Windows. On the Windows platform,…

    Alan Krause, Paul Ishenin
    3
  39. Pascal grammar: Program heading can include parameters

    I'm busy writing a Object Pascal grammar section for the Language Reference doc. In the ref.pdf (page 144) it says that the PROGRAM line can contain 'program…

    Graeme Geldenhuys, Bart, Marco van de Voort
    3
  40. Is this if /else syntax wrong?

    The following code generates a syntax error, if the semicolon after the if/else statement is removed. Is its absence a syntax error? Pascal version is 2.2.4 procedure…

    Frank Church, Bart, Guillermo Martínez Jiménez
    7
  41. xmlrpc unit

    It seems that the xmlrpc unit is missing from fpc source tree (trunk). Was it renamed (to what) or was it remove (why was that) ? Ido http://ik.homelinux.org/

    ik, Graeme Geldenhuys, Jonas Maebe
    20