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…
Hands-on: Raw Data with JFIF in C++
I have always wondered how different file types work. How is an image different from a text file? What distinguishes an image from a video? How does the computer know what is a picture and what is a program? To explore this question further, I recently wrote a toy application in C++ to write JPEG headers to a file and compare them with real JPEG…
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…