Quantcast
Channel: Delphi 2006 – The Wiert Corner – irregular stream of stuff
Browsing all 160 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

Why 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 Article

Image may be NSFW.
Clik here to view.

Crap: 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 Article

Image may be NSFW.
Clik here to view.

Delphi, 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 Article

Image may be NSFW.
Clik here to view.

Delphi: 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 Article


Image may be NSFW.
Clik here to view.

Allen 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 Article

Image may be NSFW.
Clik here to view.

MonkeyStyler 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 Article

Image may be NSFW.
Clik here to view.

Found 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 Article


Image may be NSFW.
Clik here to view.

Please 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 Article


Image may be NSFW.
Clik here to view.

Convenient 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 Article

Image may be NSFW.
Clik here to view.

Delphi “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 Article

Image may be NSFW.
Clik here to view.

When 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 Article

Image may be NSFW.
Clik here to view.

Delphi “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 Article


Image may be NSFW.
Clik here to view.

Porting 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 Article

Image may be NSFW.
Clik here to view.

Delphi: 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 Article


Image may be NSFW.
Clik here to view.

autoscrolling 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 Article

Image may be NSFW.
Clik here to view.

Delphi + 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 Article


Image may be NSFW.
Clik here to view.

Delphi 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 Article

Image may be NSFW.
Clik here to view.

Don’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 Article

Image may be NSFW.
Clik here to view.

Run 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
Browsing all 160 articles
Browse latest View live




Latest Images