Delphi operator overloading: table of operators, names, and some notes on...
Operator overloading is a very nice feature of the Delphi language. However. the Delphi documentation on Operator overloading is not completely right. Below is my table of what I found out so far, and...
View ArticleWhy SizeOf for character arrays is evil: stackoverflow question “Why does...
This Why does this code fail in D2010, but not D7 question on stackoverflow once again shows that SizeOf on character arrays usualy is evil. My point in this posting is that you should always try to...
View ArticleCrap: VersionInfo handling broken as of Delphi XE2
Today I found out the hard way that you really need a build integration system for managing VersionInfo in Delphi applications: as of Delphi XE2 it is broken in the IDE. See these links: How to manage...
View ArticleDelphi, solutions for `while debugging with Environment Variable “The program...
Two days ago I ran into the bug below while porting some code from Delphi 2006 to Delphi XE2, posted on StackOverflow, and got solutions in very little time. Thanks Andreas Hausladen, David Heffernan,...
View ArticleDelphi: path names both in .dpr and .dproj, why? (refactoring – How to...
Cool: learned something new here: About the path names of files being in the .dproj as well as in the .dpr: @Jeroen – Looks like msbuild might need those entries, otherwise they’re possibly redundant,...
View ArticleAllen Bauer on: delphi – What’s the difference between CreateWnd and...
One of the really nice contributions on StackOverflow by Allen Bauer is almost 3 years ago. It is about these three Delphi VCL methods introduced by TWinControl to make control development easier:...
View ArticleMonkeyStyler Blog: should be on DelphiFeeds too.
I mailed the DelphiFeeds people to add the MonkeyStyler Blog by Mike Sutton. It is a nice Delphi related blog focussing on FireMonkey stuff. –jeroen Filed under: Delphi, Delphi 1, Delphi 2005, Delphi...
View ArticleFound a create a table with Delphi Conditional defines over the Delphi...
Right now, documentation on Delphi Conditional Defines is on pages like Conditional compilation (Delphi) – RAD Studio XE2, but it is limited as it is for one specific version of Delphi only. However,...
View ArticlePlease write dates and times so that everyone understands them, not just you....
ISO 8601 was published on 06 05 88 and most recently amended on 12 01 04 Boy, am I glad with the xkcd: ISO 8601 post and image on the right. One reason: Please write dates and times so that everyone...
View ArticleConvenient when translating C header files: Delphi to C++ types mapping...
A while ago I was involved in a C header file translation for the header files of the IBM WebSphere MQ family of products, and the table helped a lot for the base types: Delphi to C++ types mapping –...
View ArticleDelphi “type types”: similar types but not the same type identity, some...
Few people know about a Delphi language feature that has been present since Delphi 1: prepending the type definition with a type keyword to make the type getting a new identity. Each time I use it, I...
View ArticleWhen you automatically check “Automatically close on successful compile” and...
Every once in a while I manage to check “Automatically close on successful compile” during compilation, the compiler progress disappears, and I loose my clue if compilation ended or not. This is how to...
View ArticleDelphi “Variant Records”, a few notes
Variant Records are a feature that has been in the Pascal language since Standard Pascal. A cool page for historic perspective is R3R: Pascal Features in Popular Compilers, hopefully someone will...
View ArticlePorting Delphi 2006 to XE2, fields versus properties: tightened compiler...
When porting some communications code that used records as properties from Delphi 2006 to Delphi XE2, I came across a tightened compiler error “E2197 Constant object cannot be passed as var parameter“....
View ArticleDelphi: you should avoid the `with` statement as it makes your code less...
As I wrote before, I’m with the Delphi with haters camp, and this is why: Using the with statement in Delphi makes your code less future proof. The below code example is just one of many. I show it...
View Articleautoscrolling memo in delphi – Stack Overflow
Just found this great answer by vcldeveloper to autoscroll a readonly logging memo in Delphi which works from Delphi 1 and up (: For such a simple task, you don’t need to buy a commercial component!...
View ArticleDelphi + ADO + dBase – Stack Overflow
For my research queue: I should look at the below ConnectionStrings to access dBase with ADO from Delphi, If I ever need to do that. Thanks Cromulent for asking, Nelson for editing and Pieter for...
View ArticleDelphi static class methods are assignment compatible with plain old function...
So I won’t forget, as the static in different languages varies in meaning: Static on class methods makes them assignment compatible with plain old function pointers. Thanks Moritz Beutel for initially...
View ArticleDon’t pass interfaces between application architectures over a DLL boundary
It is unwise to pass objects allocated in one framework over a DLL boundary to a different framework. In the case of Using C dll in delphi return nothing, someone tries to pass an Interface to some...
View ArticleRun batch file from Delphi IDE (via: Stack Overflow)
In pre-Galileo versions of Delphi it was easy to run a .BAT or .CMD file as a main project file: just press F9. Thanks to iManBiglary for posting how to do this in modern Delphi versions. Paraphrased:...
View Article
More Pages to Explore .....