Delphi Programming

Porting to XE5 and the “W1030 Invalid compiler directive: ‘true'” warning

Friday, March 14th, 2014 | Delphi Programming, Delphi XE5 | 5 Comments

If you port your application to Delphi XE5 and you receive this warning

[dcc32 Warning] W1030 Invalid compiler directive: 'true'
› Continue reading

Tags:

There is already a standard code style

Monday, February 3rd, 2014 | Delphi Programming | 8 Comments

As François Piette (a very honourable Embarcadero MVP) recently wrote, coding style matters. He states “… this is mostly a matter of personal preferences as long as the style is constant…” but I totally disagree in this very important topic: there shouldn’t be any “personal preferences” in writing code. › Continue reading

Tags:

VerySimpleXML – a lightweight Delphi XML reader and writer

There are lot of possibilities if you’re in need to parse or write XML files:

Now here comes another one: VerySimpleXML – a lightweight, one-unit XML reader/writer in under 500 600 lines of code. Use it for small well-formed XML files (like configuration files, etc.). › Continue reading

Tags: ,

Solving circular unit references with class helpers

Sooner or later you run into the circular unit reference problem when using a single unit for each class. There are some solutions (move the common used structs into a separate unit, use type casting, redesign your obvious bad class design, etc.) – this is a solution using class helpers. › Continue reading

Tags:

Lua 5.1 for Delphi 2010

Monday, September 28th, 2009 | Delphi 2009, Delphi 2010, Delphi Programming, Lua | 38 Comments

This is a Lua 5.1 Wrapper for Delphi 2009 and Delphi 2010 which automatically creates OOP callback functions.
› Continue reading

Tags: ,

Delphi Prism new language features

Friday, November 21st, 2008 | Delphi Prism, Delphi Programming | 4 Comments

Andreano Lanusse wrote about the new Delphi Prism language features compared to Delphi Win32.

Some of them I really would like to see in Delphi Win32 and some I don’t like and disallowed it in our internal code creation rules. The most important I dislike is

› Continue reading

Tags: , , , , ,

Unicode in Resource files

Tuesday, October 14th, 2008 | Delphi 2009, Delphi Programming | 4 Comments

Ever tried to put a unicode string (Delphi 2009) in a resource (.rc) file and tried to compile it with brcc32 or rc32?

You’ll get this error:  Expecting resource name or resource type name

The Solution is very simple (though it kept me searching some hours :-):

› Continue reading

Tags: , , ,

Right To Left Forms support

Tuesday, February 12th, 2008 | Delphi Programming | 4 Comments

How to enable Right To Left Forms (including icons and form captions) with Delphi:

› Continue reading

Tags: , , , ,

OnClick Event in TTreeView Objects

Sunday, June 10th, 2007 | Delphi for PHP, Delphi Programming | 2 Comments

This code returns the TAG of a clicked node in Delphi for PHP

› Continue reading

Tags: , , , , , ,

About Dennis D. Spreen

I'm an avid programmer working on a variety of platforms in a variety of languages with a wide technical interest.

Search

QR Code

Categories