Since I work on several projects that require multiple Delphi installations, I needed a way to start the correct Delphi IDE and call the correct command line compiler for each of these projects. There apparently is no way to automatically detect the Delphi version from the .dof,.dpr or .dproj file (or at least this is … Continue reading Determine the Delphi installation directory from a batch file
Month: April 2014
Experimental GExperts Version 1.37-2014-04-16 released
Following up on Erik's overnight surprise release of GExperts for Delphi XE6, here is a new release of my experimental version with the code formatter. The DLLs for all Delphi versions supported by the official GExperts are included. BE WARNED: This version has only tested in so far, that it can be installed into Delphi … Continue reading Experimental GExperts Version 1.37-2014-04-16 released
Windows advanced Batch programming call :bla%var%
While looking for the equivalent of a switch / case statement for Windows batch files, I came across this answer on Stackoverflow. Basically, what it does is using environment variable substitution for simulating: case %var% of 1: rem do something 2: rem do something else 3: rem do something completely different end The code looks … Continue reading Windows advanced Batch programming call :bla%var%
Experimental GExperts Version 1.37-2014-04-12 released
The latest version is the first version that supports Delphi XE5 and also officially XE4. There is nothing really new about the formatter code. But the new release can be installed even if you don't have the official GExperts installer (yet). This is an extract from the readme file: ** Installing without an official installer … Continue reading Experimental GExperts Version 1.37-2014-04-12 released
Delphi Console Applications
Delphi allows to write Console applications as well as GUI applications, while the latter is the default. But "Console" application is not clearly defined in the documentation as I found out only today (and I have been programming in Delphi for about 20 years). There is the {$AppType Console} compiler directive which corresponds to the … Continue reading Delphi Console Applications
Creating DLLs with Delphi
I just stumbled upon an article on The Delphi Wiki that I wrote years ago: Creating DLLs It's still mostly valid. There have been some improvements in newer Delphi versions, in particular since Delphi 2006 you no longer need the borlndmm.dll if you want to use ShareMem. (But still: Using ShareMem means that your DLL … Continue reading Creating DLLs with Delphi
Updating Windows Defender signatures (only)
One of my problems with Windows 8 is that Microsoft recommends to keep Automatic Updates on the setting "Install updates automatically" while I prefer the setting "Download updates but let me choose whether to install them". (Actually I don't really want to choose whether to install them but rather when to install them.) It's possible … Continue reading Updating Windows Defender signatures (only)
Translating file filters
You know these innocuous file filters used by Open / Save dialogs? They usually look like this: First Filetype (*.ex1)|*.ex1|Second Filetype (*.ex2)|*.ex2|All Files (*.*)|*.* And since typing them is so difficult because you must remember to type all these pipe symbols, Delphi provides a property editor for it. Is there anybody who actually likes this … Continue reading Translating file filters