Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2019-01

  1. Resource compilation

    the $R directive accepts resource scripts (RC) and compiles the RES file from it on demand. However, that only happens if the RES file does not exist - if it does, the…

    Martok, Bart, Benito van der Zander
    47
  2. FPC code to migrate Outlook PST file to MBOX format?

    I need to switch away from using Outlook 2003 to something sensible like Thunderbird. But when I do I need to keep my mail archive, which is stored in multiple very big…

    Bo Berglund, Austinwalker, brendan
    6
  3. trying to use C code in .pas on WIN32

    I've done research, but am just missing something. my .pas code links just fine, but doesn't RUN. ( first writeln never appears ) If I remove the external call to C…

    conlin664, Bart, Jonas Maebe
    19
  4. h2pas fails on c++ header file

    I have a c++ module which just performs calculations, and does not use c++ objects. Just c++ syntax. The header file which is used from a c++ main, is the following:…

    Giuliano Colla, Marco van de Voort, Sven Barth
    5
  5. Dos unit for Windows

    I have some problem with a file archiver which uses the Dos unit under Windows, I suspect the flaw resides in GetFAttr function. Looking in the source for Win RTL…

    Marco Borsari, Marco van de Voort
    2
  6. GDeque unit crash, FPC trunk

    I see stange crash in gdeque unit if I use unit from FPC trunk https://github.com/graemeg/freepascal/blob/master/packages/fcl-stl/src/gdeque.pp crash in…

    AlexeyT, Marco van de Voort
    2
  7. AVR GetMem/AllocMem

      AFAIU dynamic allocation memory does not exist for AVR platform ( tried to use AllocMem, GetMem and the mcu restart it's self. ) . Is there any other way to…

    Dimitrios Chr. Ioannidis, Michael Ring, Ralf Quint
    4
  8. Re: fpc-pascal Digest, Vol 175, Issue 31

    I am not sure that I can help, but this is an interesting topic and I am curious if you find a solution. I can only assume that maybe you did not link to gcc and c…

    MARCOU Gilles
    0
  9. Conversion of buffer of UnicodeChars to AnsiString

    is there smarter way how to convert buffer of UnicodeChars to AnsiString taking into account codepage conversion as: as := String(UnicodeCharLenToString(buffer, buflen…

    LacaK
    0
  10. type helper default property

    For example: type THelper = type helper for string function GetItems(Index: word): word; property Items[Index: word]: word read GetItems; default; end; Delphi forbids…

    Mattias Gaertner, Sven Barth
    2
  11. type helper constructor

    A type helper for a string can add a constructor. But how it can be used differs between FPC and Delphi. For example: {$modeswitch typehelpers} type THelper = type…

    Mattias Gaertner, Sven Barth
    1
  12. inlining functions depending on implementation only functions

    after updating from fpc 3.1 to fpc 3.3, I am getting a lot of "function was not inlined" warnings, e.g. when an inline function depends on a function not declared in the…

    Benito van der Zander, denisgolovan, Jonas Maebe
    17
  13. type helpers

    A type helper can change Self. I wondered how FPC 3.3.1 handles properties and got some unexpected results. Is this by design, a bug, or not-yet-implemented? {$mode…

    Mattias Gaertner, Michael Van Canneyt, Sven Barth
    5
  14. SetLength warnings - request

      even if there's closed issue https://bugs.freepascal.org/view.php?id=34169 I would like to ask if it can be reconsidered.   The subject is that SetLength now gives…

    Vojtěch Čihák, Benito van der Zander, Derek Edson
    22
  15. Multi-scope helpers draft

    I’d like to propose this mode switch ($modeswitch multiscopehelpers) to allow multiple helpers per scope. I have no idea why Delphi thinks only one helper should be…

    Ryan Joseph, Mattias Gaertner, Sven Barth
    4
  16. Constants in generics

    I implemented a first draft of constants (integers) in generics. My reason was specifically that I wanted a way to add methods to static arrays and generic records is…

    Ryan Joseph, Alexander Shishkin, Ben Grasset
    95
  17. when will the size of an enumerated type change?

    Type    TComparisonMode = (cmThisOnly, cmThisAndThat, cmThisOrThat); TMyClass = class public var    ComparisonMode : TComparisonMode; end; I discovered that, the…

    Dennis, Michael Van Canneyt
    1
  18. Get "disk" ID

    I need some function to get a unique ID for a disk. I need this to identify if my program has accessed this disk previously. On Windows I can retreive the…

    Bart, Giuliano Colla, Graeme Geldenhuys
    3
  19. Small typo in User_Changes_Trunk ?

    reading http://wiki.freepascal.org/User_Changes_Trunk#Modeswitch_TypeHelpers_in_Delphi_modes_enables_type_helper-syntax there is: Remedy: The only problems arise if one…

    LacaK, Sven Barth
    2
  20. Interface bug or some new feature

    Hi all I've been using 3.1.1 compiler for a long time and now I am trying to upgrade to 3.3.1 from trunk. However, I am stuck with some new behavior when using classes +…

    denisgolovan, Jonas Maebe, Sven Barth
    7
  21. "crtbegin.o" not found

    What is that? I'm seeing that compiler warning in my fpGUI projects too? Since I upgraded to 3.0.4 using Linux 64-bit. It was not there in FPC 2.6.4. Below is a sample…

    Graeme Geldenhuys, Bart, Florian Klämpfl
    6
  22. Fixes 3.2: make all fails

    OpenSuse Tumbleweed 64-bit (in a VirtualBox VM under Win10) Installed fpc 3.0.4 form rpm. (b.t.w. when clicking on the link for…

    Bart, Marco van de Voort
    3