dof2cfg and bdsproj2cfg on SourceForge

 Delphi  Comments Off on dof2cfg and bdsproj2cfg on SourceForge
Nov 252012
 

Sometimes you want to do a command line compile but you don’t have the <project>.cfg file that the dcc32 compiler needs but only the .dof file (Delphi <=7) or .bdsproj file (Delphi 2005/2006). You could of course open the project in the ide and let it create the .cfg file, but that’s something of an overkill. For these cases I have written the dof2cfg and bdsproj2cfg tools. (For Delphi 2007 and later you don’t need the .cfg files any more.) There are now two SourceForge projects for them.

 Posted by on 2012-11-25 at 17:56

GnuGetText.pas with support for TWideStrings properties

 Delphi  Comments Off on GnuGetText.pas with support for TWideStrings properties
Nov 232012
 

The current version of GnuGetText for Delphi and C++ Builder does not support properties of type TWideStrings. Since I needed this (FastReport uses them for storing the report memos), I have added that feature. The new unit is in the subversion repository on SourceForge.

Be warned: I have only tested it with Delphi 2007. If you find a problem with it, please let me know.

 Posted by on 2012-11-23 at 12:40

Automated builds – DIY

 Delphi  Comments Off on Automated builds – DIY
Nov 182012
 

 I am a fan of automated builds. I know there are lots of great tools for doing that (e.g. FinalBuilder is mentioned every time this topic comes up in the forums) but since I don’t want to pay money for it just to use in my open source projects, I rolled my own.

The result is a collection of buildtools which I host on SourceForge so I can easily add them as an external to my open source projects.

 Posted by on 2012-11-18 at 20:23

dzlib, my very own utility library

 Delphi, dzLib  Comments Off on dzlib, my very own utility library
Nov 182012
 

I am probably not the only one who has built his own utility library over the years. Mine is – of course – special because it is superior to all others. 😉

Just in case, somebody else is interested in it, I have put it under the MPL and hosted it on sourceforge. It now has its own dzlib page here

 Posted by on 2012-11-18 at 19:35

Why my blog is no longer distributed via DelphiFeeds

 blog  Comments Off on Why my blog is no longer distributed via DelphiFeeds
Nov 152012
 

Some of you might have wondered why my blog is no longer distributed via DelphiFeeds. The reason is not, that I don’t want it to be, but apparently DelphiFeeds is no longer maintained. All my attempts to get my new blog added (and the old, defunct feed removed) failed.

I am really sorry about this because I find DelphiFeeds extremely usefull.

 Posted by on 2012-11-15 at 20:30

Experimental GExperts Version 1.37-2012-11-15 released

 Delphi, GExperts  Comments Off on Experimental GExperts Version 1.37-2012-11-15 released
Nov 152012
 

The last release still contained a few newly introduced bugs, namely

  • If you put a // comment after a unit in the uses clause, it no longer did get indented correctly
  • Type declarations like type bla = type integer; were no longer formatted correctly

Also, I found a new bug regarding the formatting of event types (… of object) within classes.

These bugs are fixed in the new release. Unfortunately I don’t have all supported Delphi version on this machine so I can only provide executables for Delphi 2007, XE2 and XE3. If you need the other versions, just get the sources from sourceforge and compile them yourself (That’s not rocket science and you are a Delphi developer, aren’t you?).

Here is the download link for the versions mentioned above:
GExperts-1.37-experimental-twm_2012-11-15.zip

 Posted by on 2012-11-15 at 18:15

Experimental GExperts Version 1.37-2012-11-11 released

 Delphi, GExperts  Comments Off on Experimental GExperts Version 1.37-2012-11-11 released
Nov 112012
 

This version fixes a serious bug in the previous release. It also improves support for generic class declarations.

All my existing unit tests work again, but I also found an issue with anonymous methods that I have not yet been able to fix.

If you find any issues, please send me a bug report and attach a source file that contains the formatting you expected. That file should be a compilable Delphi unit, not just a code snippet.

Head over to the Experimental GExperts page to download the new version.

 Posted by on 2012-11-11 at 21:07

GExperts formatter bug fixed, waiting for code sample which made the change necessary

 Delphi, GExperts  Comments Off on GExperts formatter bug fixed, waiting for code sample which made the change necessary
Nov 112012
 

Uli Gerhard found a bug which was introduced in the last version of GExperts. It resulted in code after class declarations in the implementation section to be formatted incorrectly:

unit SomeUnit;

interface

implementation

type
  TSomeClass = class
    constructor Create;
  end;

constructor TSomeClass.Create;
begin
end;

end.

During the formatting, the space between constructor and TSomeClass.Create was removed which resulted in uncompilable code.

I think I found and fixed the problem, but I am waiting for Jens Borrisholt to provide a code example that actually needed this code to be formatted correctly, so there will be no new release yet.

 Posted by on 2012-11-11 at 15:05

Experimental GExperts Version 1.37-2012-11-04 released

 Delphi, GExperts  Comments Off on Experimental GExperts Version 1.37-2012-11-04 released
Nov 042012
 

 IMPORTANT: This version has a bug that results in uncompilable code under some circumstances.

I don’t know why nobody reported this, but the October release did not work at all with Delphi XE3 but crashed the IDE. The reason were two problems:

  • Embarcadero changed some properties of TCustomAction to have a setter method which resulted in e.g. inherited Caption := value; to recursively call itself. This then led to a stack overflow.
  • Unfortunately even after fixing this another problem with the key bindings being registered twice resulted in an exception during the IDE startup.

Thanks go to Daniela Osterhagen who debugged these issues and sent me patches.

Another contributor to this release is Jens Borrisholt who sent me code for formatting some more of the “new” language constructs that were added to Delphi since version 2009.

All my existing unit tests still work, but that does not mean that there are no bugs. If you find any issues, please send me a bug report and attach a source file that contains the formatting you expected. That file should be a compilable Delphi unit, not just a class declaration.

Head over to the Experimental GExperts page to download the new version.

 Posted by on 2012-11-04 at 19:19