

Der schöne Günther
Members-
Content Count
726 -
Joined
-
Last visited
-
Days Won
12
Everything posted by Der schöne Günther
-
Sounds like you're trying to write an app such as this here:
-
No, it doesn't. What makes you think so?
-
İs possible same pointer size for Win32/Win64?
Der schöne Günther replied to kosovali's topic in Algorithms, Data Structures and Class Design
Isn't that like ... the whole point of Win32/Win64? 🤔 Recommended read: Embarcadero: 64-bit Windows Data Types Compared to 32-bit Windows Data Types -
Favorite feature(s) of other editors that Delphi does not offer
Der schöne Günther replied to dummzeuch's topic in Delphi IDE and APIs
One of my favourite was when an editor (obviously not RAD Studio) suggested me to rename a function slightly, so that it would become clearer that the data is processed in a specific way. Meanwhile, Delphis compiler won't even tell you when you're accidentally reading uninitialized values from records. -
How to read an .ini file of unknown encoding a FormatSettings?
Der schöne Günther replied to Tom F's topic in FMX
I made the same mistake some time back, but why don't you keep reading the existing local file as you always have? The local format settings or encodings surely have not changed? Then, save it to a new file with fixed encoding and date/time (and float!) format and finally delete the old file. At each startup, your app can first look for the "old" file format, and then the new one. -
DUnitX passed in params are confusing
Der schöne Günther replied to JamieMi's topic in RTL and Delphi Object Pascal
Keep in mind that while you *can* write DUnitX tests like this, you don’t *have* to. You can still just have a method and define the parameters in there. To be honest, this is what I mostly do as well. The attributes are nice when you have a test where you always expect the same behaviour, and you just want to test it with a bunch of different input values. (Can’t comment on the negative/positive testing. I mostly write tests for my very own stuff, and I’m probably horrible at it) -
We use DUnitX and it discovers all our silly mistakes before release
Der schöne Günther replied to Lars Fosdal's topic in DUnitX
It's certainly not going to be trivial, but surely worth it. Been there, done that. A highly recommended read on the matter is "Working effectively with Legacy Code" -
Favorite feature(s) of other editors that Delphi does not offer
Der schöne Günther replied to dummzeuch's topic in Delphi IDE and APIs
I'd say it absolutely is. You run your editor on any system, and things like inlay hints, code suggestions and compilation itself happens elsewhere. With Delphi/C++ Builder, everything is tied to running locally on a Windows computer. Or are we focusing exclusively on text editor capabilities? I might have missed that. -
Favorite feature(s) of other editors that Delphi does not offer
Der schöne Günther replied to dummzeuch's topic in Delphi IDE and APIs
VS Code's frontend, for example, can run on any device (like an iPad) while the backend (compiler, linter, ...) runs elsewhere (like a computer, the raspberry in my broomcloset or in the cloud). -
The string "Windows 10" or "Windows 11" does not come from the Windows API, it is a string hardcoded into the Delphi RTL (System.RTLConsts.pas). Delphi 10.2 is from 2017. Windows 11 was released 2021.
-
Stumbled upon quite fast Generic collections lib
Der schöne Günther replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Possibly related read: Allocation-Free Collections – grijjy blog JustAddCode/AllocationFreeCollections at master · grijjy/JustAddCode (github.com) -
How can I disable IDE talking to external websites?
Der schöne Günther posted a topic in Delphi IDE and APIs
Since about 12 hours ago, my Delphi IDE will spawn about two dozen Internet Explorer "Script Error" dialogs on every launch. I will have to dismiss every single dialog before I can continue. I can't understand why the IDE would have to use a full web browser to talk to domains I don't even know, but I'd like to disable it and get back to work. Is there a package I can disable for this "integration"? My only workaround is disabling internet access for the VM Delphi is running on, waiting for the IDE to launch and then turn it back on. -
Changes in the C++ Builder 12.0 editor
Der schöne Günther replied to Cherubino's topic in General Help
I had the same problem: How can I disable IDE talking to external websites? - Delphi IDE and APIs - Delphi-PRAXiS [en] (delphipraxis.net) -
How can I disable IDE talking to external websites?
Der schöne Günther replied to Der schöne Günther's topic in Delphi IDE and APIs
I have disabled the "Embarcadero Community" toolbar in the IDE and the issue seems to be gone now 🤞 -
How can I disable IDE talking to external websites?
Der schöne Günther replied to Der schöne Günther's topic in Delphi IDE and APIs
Unfortunately, no. Even after deleting the entire WelcomePage folder from the installation directory, the problem remains exactly the same. -
Can you restart the LSP or do you have to restart the whole IDE?
Der schöne Günther posted a topic in Delphi IDE and APIs
After we had migrated a project from 10.0 Seattle to 10.4 without any issues and it was working great, we have now migrated the next (bigger) project by 95 %. However, we are constantly having trouble with code completion in 10.4.1, it often stops working completely. As code completion appears to be a separate process, we have three "DelphiLSP.exe" living besides the good old "bds.exe". When code completion stops working, I thought terminating these processes would trigger the IDE to restart them. But this doesn't happen. Do I have another option besides completely shutting down the IDE, opening it again, loading the project and navigating to where I just left off? -
You will have to roll your own file picker or simply display something like "Sorry, this file is not allowed" if it's not in the correct directory. Windows regular file picker does not stop the user from entering an absolute path, following shortcuts, drag & dropping files, copying & pasting, ... the list goes on.
-
Windows Arm is still not ready. It is still in the cook.
Der schöne Günther replied to Juan C.Cilleruelo's topic in Windows API
I have not been keeping up with the news. Are there really lots of incompatibilities on Windows on ARM left? I thought some DirectX and OpenGL stuff (games, mostly) will not work, but apart from that 99,9% of all "regular" software should? -
I don't want to be a dick, but entering "CEF4Delphi" into the search box 🔍 in the upper right corner might reveal the answer
-
Windows Arm is still not ready. It is still in the cook.
Der schöne Günther replied to Juan C.Cilleruelo's topic in Windows API
But I still don't get it - What exactly is Microsoft allegedly still waiting for? Windows on ARM has been a thing for several years now, and all major Microsoft software (I might be wrong) has been available natively for ARM for quite some time now. Granted, Apples Rosetta emulation is superior to how Windows emulates x64 code on ARM, but this is what we have now. What else would one now expect from Microsoft? From my point of view, their job is more or less done. -
Windows Arm is still not ready. It is still in the cook.
Der schöne Günther replied to Juan C.Cilleruelo's topic in Windows API
I struggle to understand what message this article is really trying to bring across. -
WebView2 is not available for Linux Linux support · Issue #645 · MicrosoftEdge/WebView2Feedback (github.com)
-
What have you done, besides installing the runtime? Did you place the WebView2Loader.dll in your application folder?
-
That's true for wonky edge cases, but I believe it is not the end customers job to write unit tests, especially when brand new features (which were used to justify a major version bump) struggle to get the basics done (LLVM-based compiler in C++ Builder, Delphi's LSP-based code completion, ...)
-
Us neither. But we still consider it to be a very capable tool for prototyping and drafts, and still to be less painful to use than to rewrite a product that goes back almost 25 years while still supporting and extending the legacy application at the same time. I believe that clinging to the legacy market is completely legit. Of course, I'd like to have an IDE that is a flexible and snappy as VS Code, a Delphi language which is as cool as Rust, and a form designer that does not suck balls. But I've come to peace that Delphi is, for us, the correct choice for maintaining the older projects, while using it for completely new projects would most probably be a mistake.