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
Author: dummzeuch
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
Changing the mouse wheel scroll behaviour of TListBox
While working on my dzMdbViewer I wondered why the mouse wheel didn't seem to scroll the listbox containing the table names but did work in the dbtable. It turned out to be a misconception on my side: The listbox contained only a few items so it didn't have a vertical scroll bar. The default behaviour … Continue reading Changing the mouse wheel scroll behaviour of TListBox
Convert from Subversion to Mercurial fast
In my previous post about converting from Subversion to Mercurial I assumed that I would want to migrate the history of changes from my svn repository to the new hg repository. For some projects, I don't really care about the history so I decided to take the quick and dirty route: Create a new, empty … Continue reading Convert from Subversion to Mercurial fast
Logging into a Mercurial repository on Sourceforge with an SSH private key
I was just about to post the following to stackexchange.com: --- I have got a mercurial repository on sourceforge.net, generated an ssh key with PuttyGen and uploaded it to Shell Services Configuration as described in the relevant site documentation. I then started Pageant and entered my passphrase. Now, I can connect to shell.sourceforge.net without entering … Continue reading Logging into a Mercurial repository on Sourceforge with an SSH private key