Jump to content

Lars Fosdal

Administrators
  • Content Count

    1853
  • Joined

  • Last visited

  • Days Won

    48

Lars Fosdal last won the day on July 31

Lars Fosdal had the most liked content!

Community Reputation

934 Excellent

6 Followers

Technical Information

  • Delphi-Version
    Delphi 10.4 Sydney

Recent Profile Visitors

2158 profile views
  1. We need a truly immutable typed const.
  2. @Fr0sT.Brutal - Same for records. {$WRITEABLECONST OFF} const TypedConst: xlt = (no:'Norsk'; se: 'Svensk'; en:'English'); type pxlt = ^xlt; procedure TForm1.TestTypedConst; procedure Show(const aConst: xlt); begin Memo1.Lines.Add(aConst.no +', '+ aConst.se +', '+ aConst.en); end; begin Show(TypedConst); pxlt(@TypedConst)^.se := 'Deutsch'; Show(TypedConst); end; Output Norsk, Svensk, English Norsk, Deutsch, English So, the answer is a definitive no. Edit: Note that with WRITEABLECONST OFF TypedConst.se := 'Deutsch'; gives a [dcc32 Error]: E2064 Left side cannot be assigned to while it compiles with WRITEABLECONST ON.
  3. That last point would a major concern. Source code is necessary for third party libs. Are they wrapping some DLL or ActiveX class that is shared across the supported platforms?
  4. I've butted my head against this, and sadly there currently is no way to pass a typed const to an attribute. There are reports for problems with typed consts - so please vote. https://quality.embarcadero.com/browse/RSP-13921 likewise, for dynamic arrays https://quality.embarcadero.com/browse/RSP-32488
  5. https://www.nsoftware.com/ipworks/iot/ supports AMQP 1.0 and 0.9.1 Doc for Delphi: https://cdn.nsoftware.com/help/IOF/dlp/ I haven't tried it. @jeroenp - Did you find a AMQP 1.0 compatible lib elsewhere?
  6. Lars Fosdal

    TJSONObject.Format bug

    That sounds likely. I stumbled on similar problems with formatting of json strings in other languages when I googled.
  7. Lars Fosdal

    TJSONObject.Format bug

    Not sure why it would barf on %, but you can replace % with \u0025 (Unicode escape) See also https://stackoverflow.com/questions/19176024/how-to-escape-special-characters-in-building-a-json-string/27516892 What happens if you put a double %% or %25 (Similar to \u0025) or \%
  8. Lars Fosdal

    TListView filled by Thread = Freeze

    I usually do this as a two pass operation. I first start a thread that fills a memory structure. Once the thread is done, I trigger an update in the main thread that fills the UI from the memory structure. I have nothing but negative experiences with doing UI updates directly from threads.
  9. Your English is fine. Most of the APIs we use, require OAuth 2.0, hence my question.
  10. OAuth 1.0 only?
  11. Lars Fosdal

    AllocHwnd + TTimer = lag?

    That is waaay to familiar. As a developer, you never run out of chances to own yourself.
  12. Lars Fosdal

    AllocHwnd + TTimer = lag?

    I've had issues with having multiple allocated hWnds and messaging. Ended up with a single allocated hWnd and a custom message broker/router for my user messages.
  13. Lars Fosdal

    Delphi 11 Announced

    https://blogs.embarcadero.com/rad-studio-11-is-coming-new-version-announcement-and-beta-invite-for-update-subscription-customers/
  14. Lars Fosdal

    Delphi 64 bit Registration Tools for Windows Apps

    A company that offers registration tools i.e. licensing tools for developers?
  15. Lars Fosdal

    Drawing bug with VCL Styles

    Still unable to reproduce (10.4.2).
×