Visit site The Wiert Corner

July 2014

1
vote
Vote UpVote

How Can I Determine Which Version of Word is Installed on a Computer? – Hey, Scripting Guy! Blog – Site Home – TechNet Blogs

The Wiert Corner – Late binding sometimes is your friend: Set objWord = CreateObject("Word.Application") Wscript.Echo "Version: " & objWord.Version Wscript.Echo "Build: " & objWord.Build objWord.Quit The accompanying Delphi code: uses System.Win.ComObj; procedure ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-07-24 05:00
2
votes
Vote UpVote

Delphi syntax for TODO list (via: How set up todo list categories in Delphi 2010 – Stack Overflow)

The Wiert Corner – A while ago, some of the TODO comments in my source code disappeared from the TODO list. I wondered why, so I found this question: How set up todo list categories in Delphi 2010?. The Delphi TODO item syntax in source code comments is like this (thanks Nelson H C Nepomuceno): { TODO 1 -cImportant ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-07-23 05:00
1
vote
Vote UpVote

The StackOverflow Pascal/DelphiSyntax Highlighter

The Wiert Corner – Found out where the StackOverflow Pascal has its origins: What happened to comments in syntax highlighter? – Meta Stack Overflow. Like any syntax highlighter, it is not perfect (only a Delphi compiler driven highlighter would have a chance to be perfect), but it does a pretty good job. ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-07-22 05:00
4
votes
Vote UpVote

Drawing fully justified text to a canvas (via: Parnassus OÜ – Delphi Consulting & Plugins – parnassus.co)

The Wiert Corner – Though fully justified text is most often in print, and not much in user interfaces any more, this might come in useful one day (it is based on the GDI functions TextOut and SetTextJustification): David Millington Posted: Have you ever wanted to draw fully justified text ie, text that adheres to ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-07-19 08:20
2
votes
Vote UpVote

(Old style Pascal objects): Could you please remind me if Objects support polymorphism? For instance, I…

The Wiert Corner – I observe an increase of people not asking questions on Stack Overflow any more… Today, two interesting questions caught my eye. The first one was by Martijn Coppoolse about Is it possible to figure out whether a type’s property has a ‘stored’ flag or not, preferably without ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-07-17 19:47
1
vote
Vote UpVote

Delphi: a few short notes on LoadString and loading shell resource strings for specific LCIDs

The Wiert Corner – I’m not a real expert on LCID (the values like 1033 (aka 0×409 or $409) and 1043 (aka 0×413 or $413), but here are a few notes on stuff that I wrote a while ago to obtain shell32.dll resource strings for various LCIDs. The most often used way to load resource strings is by calling ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-07-17 05:00
1
vote
Vote UpVote

Delphi: Variant versus OleVariant (via: RAD Studio API Documentation)

The Wiert Corner – I used to forget about the difference between Variant and OleVariant, and used them like this: Use OleVariants for OLE, and Variants for non OLE. There is no need to manually clear them. Luckily I was right, as the differences are documented in the Delphi on-line help at OLE-compatible Variant type ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-07-16 05:00
2
votes
Vote UpVote

Interesting comment by Joseph G. Mitzen delphi on my “Delphi – for … in on enumerated data types” post

The Wiert Corner – Joseph G. Mitzen posted a very interesting (and elaborate <g>) comment on a post from me in 2009: Delphi – for … in on enumerated data types « The Wiert Corner – irregular stream of stuff. The crux of his post is about consistency of your tools. And clearly, the Delphi team has some work to do ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-07-03 11:00

June 2014

3
votes
Vote UpVote

Delphi `with` post and discussion revisited (via: wiert.me and LinkedIn)

The Wiert Corner – A bit more than a year ago, I wrote about Delphi: you should avoid the `with` statement as it makes your code less future proof. That caused some nice comments on the blog, and some more on LinkedIn where Paul Foster mentioned it in a thread ‘Jeoren Pluimers makes a case against ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-06-11 05:00
2
votes
Vote UpVote

Delphi multithreading and DLL exports: watch your exceptions (via: Stack Overflow)

The Wiert Corner – Talking about Dnny Thorpe: he also posted a nice hint on threading methods for ancient Delphi versions that equally applies to DLL exports in any Delphi version, even any programming environment. Recently, I had to do some surgery in such a Pre-Delphi 6 application, and I was really happy to ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-06-03 05:00

May 2014

1
vote
Vote UpVote

delphi – Is there a way to get a VCL Control’s name through the windows API? – Stack Overflow

The Wiert Corner – Thanks Samaliani for posting a Delphi GetWinControlName function as answer to Is there a way to get a VCL Control’s name through the windows API? The cool thing: it works across processes (as long as your own process has ReadProcessMemory rights). It works from Delphi XE3 and up. Be sure to ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-05-29 05:00
5
votes
Vote UpVote

Recommended reads when dealing with Character Encodings in software

The Wiert Corner – Apart from the mandatory Joel on Software article about Unicode and Character sets, these two articles are of great value too: Encodings Before ASCII From a Mechanical Perspective. Character Encodings For Modern Programmers. Fun to read from that blog is the Historical Technology  section ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-05-06 06:34
2
votes
Vote UpVote

Delphi: Design-Time Component Name Limited to 63 characters (via: Vin Colgin – Google+)

The Wiert Corner – I learned something new today (thanks Vin Colgin) the Delphi Design-Time Component Name is Limited to 63 characters. Uwe Raabe found out that this an Object Inspector thing due to this constant in DesignIntf.pas: const MaxIdentLength = 63; It has been probably there since Delphi 1 and has been ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-05-05 19:09
1
vote
Vote UpVote

Interesting discussion about generic Dictionaries in Delphi (via: Steve Maughan – Google+ – TObjectDictionary Advice Needed)

The Wiert Corner – There is an interesting G+ discussion thread about generic Dictionaries in Delphi. It covers the stock TObjectDictionary in the Generic.Collections unit, Spring4D, performance characteristics like O(1), O(log n), etc, and implementation details like fill factors and hashing algorithms. Worth reading ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-05-05 06:46
0
votes
Vote UpVote

permissions – Delphi – setting Full Control on Registry Key – Stack Overflow

The Wiert Corner – One of those StackOverflow gems: permissions – Delphi – setting Full Control on Registry Key – Stack Overflow. –jeroenFiled under: Delphi, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 7, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Development, ...
Details Favorite? Off-Topic? Jeroen Pluimers @ 2014-05-02 21:13
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)