-
Content Count
3323 -
Joined
-
Last visited
-
Days Won
110
Everything posted by Lars Fosdal
-
What about the Windows permissions? https://support.microsoft.com/en-us/topic/87ebc757-1f87-7bbf-84b5-0686afb6ca6b
-
And there is nothing in the code that eats exceptions instead of exposing them? What about stills? Can you get the example to work?
-
Ah, in that case - ensure there is no other software that might grab the camera instead of your app?
-
https://blogs.embarcadero.com/delphi-digital-fan-art-and-ai-art-contest/
-
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
-
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.
-
We've not experienced any significant problems with it, but then again, our apps run in a controlled environment.
-
WideString.c_bstr() operation in 11.2
Lars Fosdal replied to Roger Cigol's topic in RTL and Delphi Object Pascal
Did you report the problem on Quality Portal? -
Yes. I wrote it, and it has been used in production for nearly a decade.
-
How to enter unicode symbols into the Delphi IDE
Lars Fosdal replied to Dave Novo's topic in Delphi IDE and APIs
Windows standard app CharMap is another option. -
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.
-
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.
-
or Retire. Sometimes, there is new software out there that can do the job.
-
Both this thread and the article you linked is nearly two years old.
-
Is there a Delphi equivalent of WriteStr ?
Lars Fosdal replied to Martin Liddle's topic in RTL and Delphi Object Pascal
Added example: caveat - specifiers from the top of my head š -
Is there a Delphi equivalent of WriteStr ?
Lars Fosdal replied to Martin Liddle's topic in RTL and Delphi Object Pascal
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. -
Is there a Delphi equivalent of WriteStr ?
Lars Fosdal replied to Martin Liddle's topic in RTL and Delphi Object Pascal
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( ? -
They are trying. But - unfortunately they are trying the marketing way, not the grassroot growth way.
-
A comprehensive guide to Delphi programming language functions and procedures
Lars Fosdal replied to pouyafar's topic in VCL
There is another guide to the Delphi Programming language. -
A comprehensive guide to Delphi programming language functions and procedures
Lars Fosdal replied to pouyafar's topic in VCL
No, you uploaded a compressed binary to GitHub. Link removed. -
Some more fun with ChatGPT and Delphi
Lars Fosdal replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
Well, I guess it is logical... old fruit will turn "gammel" š -
Some more fun with ChatGPT and Delphi
Lars Fosdal replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
gammel (Nor) = alter (Ger), but the etymologi is proto-german. Interestingly enough: age (Eng) = alder (Nor), which descends from aldr (old Nor), which again stems from alter (Ger) -
A comprehensive guide to Delphi programming language functions and procedures
Lars Fosdal replied to pouyafar's topic in VCL
A good way to share sources and projects, is to use GitHub or similar. -
WideString.c_bstr() operation in 11.2
Lars Fosdal replied to Roger Cigol's topic in RTL and Delphi Object Pascal
@Roger Cigol Did you switch to the new compiler? -
Some more fun with ChatGPT and Delphi
Lars Fosdal replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
I had to try it, @Attila Kovacs Lars Fosdal: write a poem about clouds in old norse My bad for imprecise instructions as it wrote a poem about "clouds in old norse" rather than about "clouds" in old norse. Lars Fosdal: pƄ gammelnorsk So I asked it to translate it to old norse - and albeit I am not 100% fluent, it is mostly understandable and looks credible. I fed finally fed that to Google Translate, which identified it as Icelandic - and that language is indeed closely related to Old Norse. Not perfect, but not half bad either. It can be a fantastic tool, that can create even more fantastic bullshit unless you are careful with your parameters and your proof reading.