On Conditional Compilation

Following up the discussion about conditional compilation that evolved from David Millington’s post on Google+  – as I mentioned there in my comments (and this answer on stackoverflow) I suggest using conditional compilation based on {$IF-constructs checking the built in constants CompilerVersion and RTLVersion. C’mon, this is available since Delphi 6 (nearly 15 years now)! It makes life so much easier. Continue reading

Posted in Delphi, Programming | Comments Off on On Conditional Compilation

A Splash Form in FireMonkey

While there are plenty of ways to implement a splash form in a VCL application, most of those won’t work anymore when they are going to be ported to FMX – especially when it comes to mobile targets. Thanks to one small improvement of FMX over VCL there is a simple and reliable way to implement a splash form in FireMonkey. Continue reading

Posted in Delphi, FMX, Programming | Comments Off on A Splash Form in FireMonkey

There Can Only Be One!

Handling Different Versions of Design Packages inside the IDE Continue reading

Posted in Delphi, Programming | 4 Comments

Selective Debugging

A while ago a question Paul TOTH asked on Google+:

Please, could you add a “Use System debug DCU” with the “Uses debug DCU’s” checkbox to avoid the debuger to go in the low level System functions ?

During the comments I learned that Jeroen Wiert Pluimers asked a similar question on stackoverflow over a year ago. You can find some interesting approaches tackling that problem, but none of them looked clean and easy enough for me. So I tried to find another solution. Continue reading

Posted in Delphi, Programming | 8 Comments

Delphi Library Guidelines

Everytime a new Delphi version arrives, a library vendor releases a new version or you are going to change to a newer version of some open source library it is quite likely you are getting into some hassles while integrating these changes or new version into your preferred Delphi IDE(s). Although there are vendors that actually do a good job here there are cases when there is some room for improvement. Here I am going to list some things that bothered me in the past and ways to make it easier for the developer to adapt those libraries to a newer Delphi version (without waiting for the vendor).

Continue reading

Posted in Delphi, Programming | 4 Comments