Enum Values, RTTI Attributes and Generics: How to map a Enum Value to a String in Delphi

The issue Last week, I faced a challenge with Delphi runtime type information attributes and Enum types. I needed to have an Enum for which each value had a string representation (something that Rust allows majestically). My first approach was to create a simple custom attribute like this: Then, use it directly in the enum’s values as follows: It turned out not to be a…

Read More

Error 87: Could not load python DLL using Python4Delphi

When you’re getting started with Python4Delphi, you might encounter a common challenge. Although you can successfully run the provided demos, you may run into issues when setting up your own project. Specifically, when you add an instance of TPythonEngine, either manually or programmatically, the project compiles but fails to launch, displaying an error message. This issue typically arises when there’s a mismatch between the Target…

Read More