Message directive

by Radek Červinka 20. December 2010 00:22

Sometimes is important to insert information to source code that displays during compilation. For this Delphi has $Message directive surprisingly with the parameters.





Thread safe variables for date and time formatting

by Radek Červinka 26. November 2010 22:15

In Delphi XE are changes in RTL about formatting time and date. In old versions of Delphi RTL there are globals variables.

New approach is backward compatible, but can be used as thread safe for new programs.

When converting from old code we get warning about deprecated code, but our code can be compiled and with small change deprecated warning can be removed.More...

Tags: , ,

Delphi news

Example of RTTI - list of types in program

by Radek Červinka 20. October 2010 23:43

I played with new RTTI (Run Time Type Information) and I was so impressed with the ease of use. The result is a simple program that displays a tree of known types, including methods, fields and property. It also demonstrates the effective use of anonymous methods, generic types, and all in 100 lines, including the declaration.


Tags: , ,


TBinaryReader and TBinaryWriter

by Radek Červinka 16. October 2010 00:44

There are some new handy classes in every new Delphi version. In Delphi XE e.g. implementation of TBinaryReader and TBinaryWriter.

It is clear that something similar can be programmed in an afternoon, but I am pleased with the original implementation.More...

Tags: ,

Delphi news

TTimeZone in Delphi XE

by Radek Červinka 11. October 2010 01:13

Delphi XE include in RTL support for working with local time zone (TTimeZone). Implementation is multi platform (Windows, Linux, Mac OS) and is simple for use. More...

Tags: ,


Again inline optimalization

by Radek Červinka 25. September 2010 00:12

So small comment for inline optimalization. This time inspired by Allen Bauer and I never know about this before..

For example this "good" code:

    1program InlineTest;
    5  SysUtils;
    8  s : string;
   10  s:= 'Test';
   11  writeln(s);
   12  writeln(Length(s));


Tags: , ,


Sync Edit in IDE - video

by Radek Červinka 21. September 2010 23:51

Less known feature in the Delphi 2005 IDE (probably) and newer is Sync Edit Mode.More...

Tags: ,

How to

Some tips for debugger

by Radek Červinka 20. September 2010 22:26

With debugging we usually spends much of the time for program development. I will not underestimate you and show the basic things like entering a breakpoint, but try something other. More...

Tags: ,


Delphi code snippets 1

by Radek Červinka 8. September 2010 22:53

I like to watch how others do code and let yourself be inspired. And here and there I encounter a piece of code that I am interested.

Very good source is VCL and I so many times find there a very interesting code. Like these, which is often used elsewhere.More...

Tags: ,