Delphi

Delphi Firemonkey – ld.exe cannot find shlwapi.dll: No such file or directory

After installing FMX and using it for a while I started getting a weird “ld.exe cannot find shlwapi.dll” message. There was nothing like this to be found on the internet! I posted a question of StackOverflow but people started to point in (as later turned out to be) totally wrong directions. The complete error msg […]

Delphi Firemonkey – ld.exe cannot find shlwapi.dll: No such file or directory Read More »

The four rules of packages

Rule #1: Always separate your business-logic code from the GUI code. Without this rule, all your code will be a hot mess, where libraries cannot exist. Rule #2: There should be no floating units. A unit should always belong to a project (Dpr or Dpk). Without this, you will fail to properly generate some DCU

The four rules of packages Read More »

Bug: TRichEdit removes images when TRichEdit.ReadOnly = True

When trying to load an RTF file using RichEdit.Lines.LoadFromFile(FileName) and RichEdit.ReadOnly = True the RichEdit removes all images from the RTF file showing an empty placeholder. Solution: This is an Embarcadero’s bug. The solution is to call these methods in this specific order with these specific parameters: Note that TRichEdit has full support for images

Bug: TRichEdit removes images when TRichEdit.ReadOnly = True Read More »

Say no to crappy images in your Delphi programs. Finding the best resizing algorithm.

So, because I built a program that has to resize/scale images up and down, I built this tool to test 13 resizing algorithms for Delphi. Tested algorithms Tests: Two of the above tests include 3rd party algorithms.If you don’t have access to their source code, you will have to switch off the {$3RDPARTY} switch. Test

Say no to crappy images in your Delphi programs. Finding the best resizing algorithm. Read More »

Delphi breakpoints

Breakpoints A breakpoint tells the debugger to pause the program’s execution at the location (line of code) where the breakpoint is. We can set source breakpoints in the Code Editor before we run the program, but also while the program is already running. The places where we can place breakpoints are marked by a blue

Delphi breakpoints Read More »

Scroll to Top