Delphi

Writing a FireMonkey DLL for use with a VCL application.

VCL App calling a FireMonkey DLL We have had a lot of questions on the road show tour about how to mix Fire Monkey and VCL. Although this is not officially supported, a number of blogs have started to appear with ways to do this. One way that is appropriate to add additional functionality to your VCL application is by writing a DLL library that contains your FireMonkey forms and initializing that…
Read more
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 or C++ to write applications that natively run on Windows and Mac OS. If you are writing an application that is designed to…
Read more
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…
News

Troubleshooting Entity Framework Connection Strings

Author: Craig Stuntz In an application which uses the Entity Framework, you may see the following error at runtime: MetadataException: Unable to load the specified metadata resource The cause of this error is a missing or malformed Entity Framework connection string. In particular, the cause of this error is the metadata parameter of the connection string. Let’s examine this more…
Read more
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 &#8211…
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…
Delphi

Converting to grayscale with TBitmap.ScanLine property

Author: Pawe Gowacki In my previous post “Boian’s TBitmap Visualizer and converting to grayscale” I have described an algorithm for converting arbitrary TBitmap instances to gray using a selected formula. The problem is with the performance of the code that actually changes the color of each pixel. Accessing color information is done via TBitmap.Pixels property, which is a…
Read more