Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2017-09

  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. FCL-WEB and PostgreSQL Support: Current Status

    I am about to start a new project for a very small web application. I have some questions: 1 - Are the fcl-web and postgres packages stable? 2 - Are they recommended for…

    African Wild Dog, Daniel Gaspary, Karoly Balogh (Charlie/SGR
    17
  3. How to call C++ function with Vector

    I have a windows 32-bit dll written in C++ (probably C++ Builder). It has 1 function which I need to call: int SPAPI_GetProduct(vector<SPApiProduct>& apiProdList) I am…

    Dennis, Dennis Poon, leledumbo
    8
  4. PTCGraph: Monitor, Orientation and Size Selection

    I have a system with 3 Monitors, 2 Horizontal 1920x1200 and 1 Vertical 1200 x 1920. I'm wondering if there is a way to specify which monitor my program using PTCGraph…

    James Richters
    0
  5. Syntax to select constant or variable with function call

    I have several Similar arrays as follows for translating various color schemes into RGB565, I currently have 5 arrays but may add more. ACI256: Array[0..255] of…

    James Richters, Michael Van Canneyt, Ralf Quint
    9
  6. Booleans vs sets

    I have a class that is filling up with booleans. Would it be more efficient to store these as a “set of”? I have 10 bools which is getting up there. Ryan Joseph

    Ryan Joseph, Mattias Gaertner, Michael Van Canneyt
    4
  7. PortAudio writing audio files Windows and MacOS

    I noticed freepascal has some PortAudio related code (AFAICT fredvs has contributed some units here too).. Can portaudio, the cross platform API, be used on macOS? Does…

    Unknown author
    0
  8. Comparison operator for generics

    This is a common pattern I’m finding when working with generics in FPC. In the example below there is an equals comparison that needs to be checked but for some types…

    Ryan Joseph, Maciej Izak, Michael Van Canneyt
    6
  9. Inclocked/declocked

    I was time profiling some code and saw these 2 functions taking up large amounts of time. They’re coming from dynamic arrays and SetLength I believe but I was curious…

    Ryan Joseph, Mark Morgan Lloyd, Sven Barth
    7
  10. Container class for key-value pairs

    since I'm programming Pascal only on occasion I'd like to know: Which container class ist the easiest to use for key-value pairs? The goal is to store a configuration…

    Marc Santhoff, leledumbo, Michael Van Canneyt
    4
  11. Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

    I have created a simple application which relays data from an application I am debugging in Windows7 to/from a remotely located embedded data system. I use the built-in…

    Bo Berglund, el es, José Mejuto
    23
  12. Where and Why is there a memory leak?

    Playing with this small sample application to answer another question in this mailing list, I noticed the sample application has a memory leak. For the life of me I…

    Graeme Geldenhuys, Marcos Douglas B. Santos, Michael Schnell
    19
  13. When to use and not use @?

    Coming from Delphi I am a bit confused about the syntax when dealing with procedure arguments specified as var... In Delphi this is all taken care of by the compiler and…

    Bo Berglund, Michael Van Canneyt
    1
  14. Mantis doesn't contain a 3.0.4 product version

    How are we supposed to report bugs against 3.0.4-rc1 if there is no such Product Version defined in Mantis? Graeme fpGUI Toolkit - a cross-platform GUI toolkit using…

    Graeme Geldenhuys, Michael Van Canneyt
    9
  15. implements

    I think I asked this some years ago but I came across it again I just don’t get what the point of this is. There is an “implements” property but it seems like yet…

    Ryan Joseph, Graeme Geldenhuys, Michael Schnell
    13
  16. Free Pascal 3.0.4-rc1 released!

    We have placed the first release candidate of the Free Pascal Compiler version 3.0.4 on our ftp servers. You can help improve the upcoming 3.0.4 release by downloading…

    Marco van de Voort, Graeme Geldenhuys, Mattias Gaertner
    7
  17. TP compatibility: procedural type

    Hello, all. According to Borland's official language guide to To be used as procedural values, procedures and functions must be declared with a 'far' directive or…

    Anton Shepelev, Karoly Balogh (Charlie/SGR, Marco van de Voort
    15