Visit site Delphi Haven
March 2010
1
vote
Quick quiz
Delphi Haven
– Consider this unit: unit CCR; interface type SysUtils = record const EmptyStr = 'Overridden'; end; implementation end. If the constant on the record type hurts your eyes (or you still use an ancient Delphi version), use this instead – unit CCR; interface type TSysUtils = record ...
0
votes
Quick tip: using MSXML v6 with TXMLDocument in D7-D2007
Delphi Haven
– By default, the VCL’s TXMLDocument class will delegate to MSXML for its actual parsing and writing. Now MSXML itself comes in various versions, with newer ones being installed side-by-side with older ones. To cope with this situation, the VCL tests for the existence of a number of them, the idea ...
2
votes
New CCR Exif release (now v1.1.0)
Delphi Haven
– I’ve just put up another revision of my Exif parsing/writing code. This release centres on improving how XMP packets are read and written (more details here), so there’s no interface changes of any significance. Anyhow, the download location is the same as always.
February 2010
0
votes
Small update to my Exif library (now v1.0.1)
Delphi Haven
– I’ve just put up another revision of my Exif parsing/writing code. There’s only a few changes from last time – TCustomExifData now accepts Exif segments that declare themselves to be big endian when they are really small endian or vice versa. elTrilinear renamed esTrilinear. In ...
3
votes
Compiling a Hunspell DLL, step by step
Delphi Haven
– As I got asked, I thought I might as well make a separate post out of it, so here goes. To compile a new Hunspell DLL, you could do the following: Make sure you have a suitable C++ compiler at the ready. I’ve no idea about C++Builder, but Visual C++ Express does the job fine, and it’s ...
January 2010
3
votes
Naïvely Latin-1
Delphi Haven
– Just checking out DelphiFeeds.com, I see a post at the top which makes an error (or at least veers towards it) that I find weirdly irritating: conflating ASCII with the Windows Latin-1 codepage. Let’s get some things clear: Latin-1 covers more than just modern English. Latin-1 is itself a ...
3
votes
Another update to my Exif (and now IPTC) code (v1.0.0)
Delphi Haven
– Having been stuck on v0.9.x for ages due to my somewhat arbrary versioning scheme (or lack of one!), I thought I might as well get a v1.0.0 out, so here it is. Changes since v0.9.9 are as thus: Added support for IPTC metadata as stored in Adobe APP13 segments — Implemented an IPTC reader/writer ...
December 2009
0
votes
Small thought
Delphi Haven
– It’s hardly an original thought, but why does the off-topic group at the Embarcadero forums still exist? At my time of writing (I’m doing so in advance of actually posting BTW), it’s dominated by some American guy whining about supposed censorship from political opponents — ...
6
votes
Dynamic arrays — pure reference types, except when they’re not
Delphi Haven
– A reasonable way to understand the semantics of dynamic arrays in Delphi is to recall the sort of code you might have used as a substitute before they where introduced in Delphi 4. Assuming only a single dimension to keep things simple, stage one would be to declare dummy static array type, together ...
0
votes
Mr Hater gets constructive
Delphi Haven
– I haven’t looked at his blog in a while, but I see Mr Hater had an unusally constructive post last month. As with other examples of the genre, it does have its parochial edge (see in particular point 13 — Embarcadero are going wrong since, having failed to create a direct replacement, ...
5
votes
Are dynamic arrays in Delphi half-baked?
Delphi Haven
– In a nice little series on ‘Delphi in a Unicode world’ written and published around the time of Delphi 2009’s release, Nick Hodges writes on the topic of using strings as binary buffers as thus: A common idiom is to use a string as a data buffer. It’s common because it’s been easy ...
November 2009
0
votes
New revision of my Exif library (v0.9.9)
Delphi Haven
– I’ve just put up another revision of my Delphi Exif parsing code. This revision has two main themes: Sanity checks have been added to the parsing code, meaning every single TIFF offset is now checked. Connected to this, and by popular demand (or so it seems), the balance between accepting ...
October 2009
3
votes
Using Hunspell — a code page-aware wrapper
Delphi Haven
– Yes, it’s been done before – indeed, I’ve used Brian Moelke’s simple Hunspell wrapper from a few years back myself – but a few posts on the Embarcadero forums in the past couple of months have prompted me to write up my own. Basically, if you haven’t heard of it, Hunspell is the open source spell ...
1
vote
New revision of my Exif library (v0.9.8)
Delphi Haven
– It’s taken a while, but I’ve just completed another revision of my MPL’ed Exif reader/writer code, Exif being the standard format for JPEG metadata (see here). The biggest new feature in terms of effort spent is much better XMP support – the default behaviour is now to update the equivalent XMP ...
September 2009
2
votes
Adding scripting support to a Delphi application, again
Delphi Haven
– I’ve updated the Delphi 2010 IDispatch proxy code I posted a couple of weeks ago, fixing a few bugs, improving how Delphi exceptions are handled in my IDispatch.Invoke implementation, and adding some set type support. For the latter, set values are now surfaced as objects with Empty and Contains ...



