Archive for October, 2008

BLOB not found errors using Firebird and IBObjects

Tuesday, October 28th, 2008

One of my applications suddenly started throwing “BLOB not found” errors apparently at random. After some hours spent googling I came up with a cause for the problem but no solution. A bit of fooling around came up with a workaround. A fix for IBObjects would be better, but this at least gets rid of the problem. (more…)

Installing IBObjects into Rad Studio 2007

Thursday, October 16th, 2008

Installing IBObjects into Rad Studio so that the components appear in the Delphi tool palette is simple.  Just following the instructions in the help file.  However, getting the components to appear in the C++ tool palette is another matter altogether.

To get the components to appear on the C++ tool palette you need to make some changes to the projects for the design time packages.  Open each design time package (.DPR) project and open the project options dialog.  You need to select the Generate all C++Builer Files option in the linker section and you need to set the Search Path in the Directories/Conditionals section to the IBObjects source directory.

Once you have done these two things, just install the design time packages in the usual manner.   Simple when you know how but I spent an incredibly frustrating couple of days trying to figure this out.

Fade In / Fade Out Forms In Delphi 5

Tuesday, October 14th, 2008

I recently had a need to create a pop up dialog that would show an informational message and close itself after a few seconds without the user having to click a mouse button or press a key on the keyboard. This is easy enough to do by creating a form, placing a timer control on the form and using the OnTimer event to close the window. But I found the abrupt appearance and disappearance of the form to be jarring. How much nicer, I thought, it would be to have the form fade in, linger a while and fade out. (more…)