Jump to content

Lars Fosdal

Administrators
  • Content Count

    3565
  • Joined

  • Last visited

  • Days Won

    120

Everything posted by Lars Fosdal

  1. Lars Fosdal

    The software industry has moved to the Web, why?

    The enterprise loves this because of zero deployment As long as your desktop/laptop has the appropriate browser, all you need is the URL. No need to install, update, patch, and you can work from anywhere without an high-powered laptop. Rolling out apps to thousands of PCs is a chore - and maybe the user have installed something that interfers with the new version. Rolling out a new web version is simply a tweak of a URL redirect, rolling back - the same. No deployed files that can be copied and reverse engineered or used without credentials. As for the quality of the web apps - that varies a LOT - but the good ones are on par with the desktop editions.
  2. What is it supposed to do? If it is only simple local logging, there are alternatives?
  3. Just keep reporting them, and we'll clean house as soon as possible.
  4. Lars Fosdal

    TVideoCaptureDevice will not run in (Delphi 10.2.3)

    I spotted this. Not sure if relevant? https://stackoverflow.com/questions/45502430/how-to-access-camera-on-a-windows-tablet-with-firemonkey
  5. Lars Fosdal

    TVideoCaptureDevice will not run in (Delphi 10.2.3)

    What about the Windows permissions? https://support.microsoft.com/en-us/topic/87ebc757-1f87-7bbf-84b5-0686afb6ca6b
  6. Lars Fosdal

    TVideoCaptureDevice will not run in (Delphi 10.2.3)

    And there is nothing in the code that eats exceptions instead of exposing them? What about stills? Can you get the example to work?
  7. Lars Fosdal

    TVideoCaptureDevice will not run in (Delphi 10.2.3)

    Ah, in that case - ensure there is no other software that might grab the camera instead of your app?
  8. https://blogs.embarcadero.com/delphi-digital-fan-art-and-ai-art-contest/
  9. Lars Fosdal

    TVideoCaptureDevice will not run in (Delphi 10.2.3)

    You have not identified the type of device, so I assume Android and/or iOS. Has the app requested the right to use the camera? Has approval been given? Ref: https://docwiki.embarcadero.com/RADStudio/Tokyo/en/Uses_Permissions#camera
  10. Lars Fosdal

    More precise countdown

    You still haven't explicitly defined the required precision? Anything timing related on Windows is a gamble err, calculated risk, unless you go to driver-level, and even then it depends on Windows not being starved for resource.
  11. Lars Fosdal

    Update an application automatically

    We've not experienced any significant problems with it, but then again, our apps run in a controlled environment.
  12. Lars Fosdal

    WideString.c_bstr() operation in 11.2

    Did you report the problem on Quality Portal?
  13. Lars Fosdal

    Update an application automatically

    Yes. I wrote it, and it has been used in production for nearly a decade.
  14. Lars Fosdal

    How to enter unicode symbols into the Delphi IDE

    Windows standard app CharMap is another option.
  15. Lars Fosdal

    Update an application automatically

    I got code that checks for a new version, downloads it to a temp file. Renames the running file, and renames the temp file to the running name, and then uses this code to relaunch. Works for .exe files and services. Has worked well for a decade.
  16. Lars Fosdal

    Move objects to a second Data Module

    I never liked the visual data module. I'd prefer it to have a listview of components rather than a collection of icons. On event handlers. Assign them in code. They break so easily otherwise.
  17. Lars Fosdal

    Move objects to a second Data Module

    or Retire. Sometimes, there is new software out there that can do the job.
  18. Lars Fosdal

    macbook pro M1, running Delphi IDE

    Both this thread and the article you linked is nearly two years old.
  19. Lars Fosdal

    Is there a Delphi equivalent of WriteStr ?

    Added example: caveat - specifiers from the top of my head 😛
  20. Lars Fosdal

    Is there a Delphi equivalent of WriteStr ?

    I see. How many of these do you need to replace? If it is not a massive number, I would go for Format. It can both left and right pad with spaces if so is required, but converting the WriteStr formats will be a chore. WriteStr(s2, 'x = ', x:10:4, ', y = ', y:10, ', s = ', s:20); s2 := Format('x = %10.4f, y = %10d, s = %-20s, [x, y, s]); The usual f'up here is to either missalign the format string and the number of params, or have the wrong type variable in relation to the format specifier.
  21. Lars Fosdal

    Is there a Delphi equivalent of WriteStr ?

    UliGerhardt's solution could be wrapped - but it would be challenging to make threadsafe. It would treat s2 like a file, and write to the file. With a helper class, it would be possible to read the last written content out from s2 as a String again. Is it unthinkable to simply replace WriteStr(s2, with Writeln( ?
  22. Lars Fosdal

    Need a "Delphi programming guideline"

    They are trying. But - unfortunately they are trying the marketing way, not the grassroot growth way.
  23. There is another guide to the Delphi Programming language.
  24. No, you uploaded a compressed binary to GitHub. Link removed.
  25. Well, I guess it is logical... old fruit will turn "gammel" 🙂
×