Friday, December 22, 2006

The missing Import Component Wizard in Turbo Delphi (Win32)


Apparently the Import Component and View Type Library wizards are not enabled in Turbo Delphi (Win32) by default.
A workaround has been posted on the newsgroups:

Create an empty file named: ATLBASE.H in this directory: $(BDS)\include\atl\

Monday, December 18, 2006

The missing ActiveX Control Wizard


The ActiveX Control Wizard is missing in Delphi 2006 by default.
You can bring it back by adding the following string value in the registry:

[HKEY_CURRENT_USER\Software\Borland\BDS\4.0\Type Library]
"ActiveXWizard"="True"

I've just found it in a comment to QC25012.

Also see Delphi 2006 Hidden COM Registry Entries.

Regmon reveals another missing registry entry, "InteropCheck"="True", also mentioned here.

Friday, December 08, 2006

Don't mistake SyncEdit for Refactoring ;-)

Don't mistake Delphi's SyncEdit for Refactoring. (In case you wonder what SyncEdit is, it's invoked by pressing Ctrl+Shift+J on a selected text in the editor. Works in Delphi 2005 and higher.)

By doing so I've just introduced a rather obscure bug in my code which took me a while to recognize. ;-)
When using SyncEdit, be aware that you're simply doing a search/replace within the selected block of code.

The help says:
Sync Edit determines indentical identifiers by matching text strings; it does not analyze the identifiers. For example, it does not distinguish between two like-named identifiers of different types in different scopes. Therefore, Sync Edit is intended for small sections of code, such as a single method or a page of text. For changing larger sections of code, consider using refactoring.

There's also a nice article by Bob Swart about SyncEdit, Refactoring and more.

Friday, December 01, 2006

The 2006 Delphi Survey

Here's your chance to let CodeGear know what you would like to see in future versions of Delphi: