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 &#8211…
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
Delphi

A case when FreeAndNil is your enemy

Author: Allen It seems that my previous post about FreeAndNil sparked a little controversy. Some of you jumped right on board and flat agreed with my assertion. Others took a very defensive approach. Still others, kept an “arms-length” view. Actually, the whole…
Delphi

Delphi 2010 DirectWrite "Hello World" Example

Author: Sinisa P29531 In my previous post I have translated Windows 7 SDK Direct2D “Advanced Geometries” examplefrom C++ to Delphi 2010 code. That was a lot of fun, so I have decided to continue the adventure in the realm of Direct2D programming and this…
C++

Code Navigation In The RAD Studio Code Editor

Author: Darren Kosinski V1400 During the recent field test for RAD Studio 2010, I had a discussion with some field testers about the different mechanisms that the IDE provides for navigating through your source code. In particular, they were wondering why sometimes one method of code navigation fails, but other methods still work. I thought that this would be of interest to some of you as well, so…
Read more
Delphi

DataSnap Server Methods Parameters

Author: Jim T1392 Delphi 2009 introduced support for DataSnap server methods. If you are not familiar with this feature, here are two articles that describe server methods: DataSnap 2009 Overview , Getting Started with Delphi DataSnap 2009. DataSnap server methods support a…
Delphi

SQLDA missing or incorrect version, or incorrect number/type of variables

Author: Craig Stuntz The error in the title comes from InterBase. Actually, the full error is: [DataDirect][ODBC InterBase driver][InterBase]Dynamic SQL Error, SQL error code = -804, SQLDA missing or incorrect version, or incorrect number/type of variables. I’ve seen this error before when the wrong InterBase client (gds32.dll) version was loaded by the application, or when the wrong number…
Read more