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

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: 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.

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.

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.

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


Image may be NSFW.
Clik here to view.

2D transformations as answer to “delphi – Change orientation of a shape”–...

Sometimes a generic answer to a specific answer gives people a lot more insight into what they actually want to accomplish than a specific answer. Plus that the knowledge does not only apply to VCL in...

View Article

Image may be NSFW.
Clik here to view.

Delphi virtual constructors: example of the “Factory” design pattern (via:...

I bumped into the below answer that I gave a while (what is 4 years in a developer’s life ) on StackOverflow. It is about Delphi Design Patterns. Sepcifically the Factory Pattern, and explains how...

View Article


Image may be NSFW.
Clik here to view.

.NET/C#/VB.net: some links on ExpandoObject

Still a C# 4.0 / .NET 4 feature that I need to investigate more deeply: ExpandoObject, partially because I had very bad memories of Variant support in Delphi. So here are a few links. First of all:...

View Article

Image may be NSFW.
Clik here to view.

Delphi – Direct3D and the wrong FPU state: Now() function returns a wrong...

The question datetime – Delphi Now() function returns a wrong value – Stack Overflow is similar to my article Delphi – Michael Justin had strange floating point results when his 8087 FPU Control Word...

View Article

Image may be NSFW.
Clik here to view.

When the Delphi XE5 commandline compiler fails with `error F1026: File not...

If you an error like below when compiling Delphi XE5 .dproj files using msbuild … then note the documentation for Debug information (Delphi) – RAD Studio. has not been updated yet as it still lists the...

View Article
Browsing all 136 articles
Browse latest View live




Latest Images