Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2015-06

  1. How to use a static method as procedure variable?

    Consider the following sample: === begin code === type TMyProc = procedure(ABytes: array of Byte; out AOutput: AnsiString); TForm1 = class(TForm) Button1: TButton;…

    silvioprog, Ewald, Jonas Maebe
    4
  2. TDBF licensing

    Am I correct in understanding that TDBF included with FPC is a LGPL licensed component, the one that doesn't have the static linking exception. So I can't use it in any…

    Graeme Geldenhuys, Adriaan van Os, Jonas Maebe
    12
  3. Help building FPC on armhf

    I recently installed fpc-2.6.4 on my Wandboard-Quad for production. I have fpc from svn but I get an error when I try to build. Compiling ARM Free Pascal Compiler...…

    Andrew Brunner, Jonas Maebe, Michael Ring
    9
  4. Is there some reason why the linker cannot find crti.o, crtn.o etc?

    These messages come up almost always when I compile a project: Warning: "crti.o" not found, this will probably cause a linking failure templateSys.lpr(39,1) Warning:…

    vfclists ., Marco van de Voort
    1
  5. Exception when trying to set a COM object property through OleVariant

    I am using FPC 3.1.1. I am playing with SAPI5. It almost works, but I am unable to set a Voice of SPVoice object through OleVariant. The following program works fine in…

    Lubos Pintes, Jonas Maebe
    1
  6. fpchmod(thefile, S_IRWXU) not for freeBSD ?

    Hello. This to advice that fpchmod(thefile, S_IRWXU) is not working with freeBSD. This because some const are missing for FreeBSD in FPC's RTL. But, thanks to Graeme,…

    fredvs, Graeme Geldenhuys
    1
  7. Multipe path in TProcess.Environment ?

    Hello. If a TProcess runs a executable who needs a library, that does the trick => TProcess.Environment.Text := 'LD_PRELOAD='/the/directory/of/thelibrary.so' ; You may…

    fredvs, Michael Van Canneyt, Tomas Hajny
    6
  8. PDF indexing

    does fpc (or lazarus) have a helper class for indexing the content of PDF files? I want to create a searchable full text index. Marc Marc Santhoff

    Marc Santhoff, Michael Van Canneyt, Serguei TARASSOV
    8
  9. SizeInt documentation

    The documenation in http://www.freepascal.org/docs-html/rtl/system/sizeint.html says: ----------------------- SizeInt Signed integer type which fits for sizes Declaration

    Jürgen Hestermann, leledumbo, Michael Van Canneyt
    5
  10. FPC linker oddity

    The following simple program which uses the $LINKLIB compiler directive builds fine under Linux: program Project1; {$Linklib c} Const P : PChar = 'This is fun !';…

    patspiper, Jonas Maebe, Tomas Hajny
    5
  11. Object file requiring kernel32.dll functions

    The situation is as follows: - Platform: Windows - file1.obj: 3rd omf object file (no source available) that can be used by Delphi linker and calls kernel32.dll…

    patspiper
    1
  12. FPC linking syntax error

    Compiling the following simple program (from fpc prog manual http://www.freepascal.org/docs-html/prog/progsu46.html#x53-520001.2.46) yields a linking syntax error:…

    patspiper, Jonas Maebe, Marco van de Voort
    10
  13. loadlibrary() unsafe ?

    Hello. Here the thing: a open-source program, eSpeak (voice synthezer) uses 2 libraries: espeak-library and portaudio. In eSpeak source => - For the Windows version, the…

    fredvs, Ewald, Fred van Stappen
    14
  14. For .. in .. loops with sets and valued enums

    Consider the following program: program Project1; type TMyEnum = ( c = 5 ); TMySet = set of TMyEnum; var Item: TMyEnum; begin for Item in TMySet do Writeln('Value = ',…

    Torsten Bonde Christiansen, Adriaan van Os, Bernd Oppolzer
    8
  15. FPC ARMEL and ARMHF under the same tree

    I currently have my [cross-]compilers under the same tree, to ease management and the ability to use single fpc.cfg. AFAIU FPC ARMEL and ARMHF are two distinct targets,…

    leledumbo, Florian Klämpfl, Jonas Maebe
    7
  16. How to get the permission f a file ?

    Hello. With fpchmod(), it is possible to change the permission of a file. Perfect. But how to check if a file has executable permission (and if not, change it with…

    fredvs, Bart, Ewald
    6
  17. fpGUI Features

    Does FpGUI supports custom drawing or custom styles of the controls? Regards

    Fabrício Srdic, Graeme Geldenhuys, Horacio Jamilis
    11
  18. SetPropValue: value as string does not work for Chars and Booleans

    Trying to set the value 'a' to a property Char and a 'True' to a Boolean property, I got some errors (logs in attached) in function 'TypInfo.SetPropValue'. But I did the…

    silvioprog, Michael Van Canneyt
    3
  19. TDataset incompatible with Delphi 7 and later

    I've noticed the following incompatible (missing) TDataset properties, which have been available at least since Delphi 7 onwards (maybe even earlier). These are missing…

    Graeme Geldenhuys, Michael Van Canneyt
    2
  20. Re: FPC roadmap?

    Thank for answers. Are some dates planned for 3.0 release ? Actually, we have some risks : 2.6 is frozen and not supported but 3.0 is not released yet. I took a little…

    Serguei TARASSOV, Jonas Maebe, Juha Manninen
    13
  21. [PATCH] Extends SetPropValue/GetPropValue making it compatible with new versions of Delphi

    Please see it in: http://bugs.freepascal.org/view.php?id=28278 Thank you! Silvio Clécio My public projects - github.com/silvioprog

    silvioprog
    0
  22. record helpers & how they effect records

    using a simple record, e.g. some_record_type = record a, b : longint; end; If I declare a record helper, does this change the record in any way? i.e. does the record…

    David Emerson, luiz americo pereira camara, Michael Van Canneyt
    3
  23. p2js - pascal to javascript compiler

    Take a look at this interesting product: http://p2js.gelicon.biz/en It's build upon FPC source and has GPL license. It looks interesting. Perhaps we can use this to…

    Bee, Marc Santhoff, Michael Van Canneyt
    5
  24. Tips & Tricks: AllocationPreference Registry Key

    I was only recently made aware that this registry key exists. I thought it might be useful to other developers developing for the Windows platform. This can help with…

    Graeme Geldenhuys
    0
  25. Writing a DLL to be use in a VBA code

    At work, I need to create a Excel sheet containing certain more complex functions. I tried to use only VBA, but I released I will more productive if I could use a DLL…

    luciano de souza, Marco van de Voort, Michael Van Canneyt
    4
  26. valgrind: "invalid read"

    I have just started using valgrind, and I was surprised that I got a lot of errors, particularly in places that look like clean code. So I whittled things down and…

    David Emerson, Jonas Maebe, Pierre Free Pascal
    4
  27. Re: FPC roadmap?

    Thanks for info. Personally, I'm able to use fixes_3_0 branch, the problem is that solution is not easy to support even for small developers group and some build/tests…

    Serguei TARASSOV, Florian Klämpfl, Jonas Maebe
    2