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
Category: Delphi
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
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
Using jclDebug
Today I was at the Delphi Frühstück (breakfast) at Comcept GmbH in Cologne. It was quite an inspiring talk there. Thanks to the guys who organized it, I am looking forward to going there again. One of the questions that came up was how to use jclDebug for getting source code location and call stack … Continue reading Using jclDebug
Converting from Subversion to Mercurial
Here, I will be posting notes on converting Subversion repositories to Mercurial. NOTE: This is work in progress. I will probably come back and change things as well as adding. Some links on using Mercurial: Hg Init: a Mercurial tutorial by Joel Spolsky QuickStart in the Mercurial Wiki I have got TortoiseSVN 1.8.3 including the … Continue reading Converting from Subversion to Mercurial
Some Batch File Wizardry for Automated Builds
At work and also on my private computer I am maintaining multiple Delphi projects that are (currently) managed in subversion repositories. They have a general structure like this: projectname \- buildtools (-> svn:external) \- src (project sources) \- libs \- dzlib (-> svn:external) \- some other libraries, all svn:external Being a lazy bastard (deutsch: faule … Continue reading Some Batch File Wizardry for Automated Builds
Multiple Batch Files in Pre-/Postbuild Events in Delphi / msbuild
Since version 2007 Delphi supports pre- and postbuild events for projects. If you only want to start programs or one batch file it's a simple matter of adding the call to the respective section of the project options dialog. I use it to manage version numbers in the program resources and manifest files in prebuild … Continue reading Multiple Batch Files in Pre-/Postbuild Events in Delphi / msbuild
Delphi 6 on Windows 8.1 (64 bit)
After getting Delphi 2005/2006 and 2007 working again the last stumbling block was Delphi 6. It used to work fine on Windows 8 but after the update to Windows 8.1 it always started the registration wizard for a new activation. Unfortunately this activation did not work, I tried it twice, just to be sure. So, … Continue reading Delphi 6 on Windows 8.1 (64 bit)
Delphi 2005/2006 on Windows 8.1 (64 bit)
After getting Delphi 2007 to work again I tried to do the same for Delphi 2005 and 2006. Both versions require the dotNET framework 1.1 which is officially no longer supported on Windows 8 (and 8.1). According to Microsoft, you should contact your independent software vendor (ISV) to have the application upgraded to run on … Continue reading Delphi 2005/2006 on Windows 8.1 (64 bit)