Delphi

New "TOSVersion" type in Delphi XE2

Author: Tóth Erik Delphi XE2 is probably the most significant release since Delphi 1. The number of new features is amazing and probably the biggest, most important one is FireMonkey – a brand new business application development platform that let you use Delphi…
News

Why Won't Visual Studio Step Into This Code?

Author: Craig Stuntz I helped another developer debug an interesting problem this morning. Let’s see if you can spot the problem. The code in question looked something like this simplified version containing only enough code to show the problem: public void…
Delphi

Delphi JSON Viewer

Author: Michael K22532 JSON support has been introduced in Delphi 2010 as a part of DBExpress database driver architecture, but of course JSON support is not limited to just database applications. JSON is similar to XML as both are text-based data interchange formats. Delphi…
Delphi

Using Windows Stock Icons in Delphi

Author: Pawe Gowacki it is not a big discovery that all applications are running in the environment provided by the underlying operating system. Delphi is well-known for its rapid application development capabilities. The latest version of Delphi – Delphi 2010 – is the first release to support Windows 7, with all its latest and hottest additions including touch, multi-touch, gesturing…
Read more
News

In LINQ, Don't Use Count() When You Mean Any()

Author: Craig Stuntz If you have a list, array, or query in a C#/LINQ application and need to check and see if the list is empty, the correct way to do this is to use the Any() extension method: if (q.Any()) { Similarly, you can check to see if any elements in the list…
News

A Math Primer for Gentry's Fully Homomorphic Encryption

Author: Craig Stuntz A couple of weeks ago, I wrote What Is Homomorphic Encryption, and Why Should I Care? In that post, I promised to share my C# implementation of the algorithm from Craig Gentry’s CACM article. Before I can do that, though, I need to explain some of the math involved. Perhaps surprisingly, it’s actually very simple. (I say “surprisingly” because much of…
Read more