Saturday, January 07, 2006

Delphi 2005 win32 Nice 'n Quick

So you want to do some good old-fashioned win32 VCL programming with Delphi 2005?
But you either had to install the 2 .NET personalities (or forget about removing them), and now the IDE doesn't feel as nimble as previous versions.

Step 1: get up to date on the patches (I'm not going to talk about this)

Step 2: get your configuration tuned up (this I am!)

There are a lot of tools and posts around already on this topic, for example see the indefatigable Zarco Gajik

http://delphi.about.com/od/delphifornet/a/delphi2005win32_3.htm

The definitive answer is here from the creator of the Delphi Setting Manager

http://blogs.slcdug.org/esaputra/articles/728.aspx

The key feature is that having a command line with -r will modify the registry location that Delphi uses for configuration, which controls a huge amount of the functionality of the IDE.

As an aside, it is possible to get to a bare application which does next to nothing, but start instantly.
If that's useful to you...

For users of Delphi Personal 2005, I've found that simply modifying the Disabled Packages key with the following file works.

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Borland\W32\3.0\Disabled IDE Packages]

"$(BDS)\\Bin\\htmide90.bpl"="HTML Designer Package"
"$(BDS)\\Bin\\csinsite90.bpl"="(Untitled)"
"$(BDS)\\Bin\\htmlhelp290.bpl"="Borland HtmlHelp Viewer"
"$(BDS)\\Bin\\idefilefilters90.bpl"="IDE File filters"
"$(BDS)\\Bin\\dbkdebugide90.bpl"="(Untitled)"
"$(BDS)\\Bin\\htmltidy90.bpl"="HTML Tidy Formatter"
"$(BDS)\\Bin\\HTMLFmt90.bpl"="HTML Internal Formatter"
"$(BDS)\\Bin\\mlcc90.bpl"="Markup Language Code Completion Package"
"$(BDS)\\Bin\\aspcside90.bpl"="CSharp ASP.NET IDE Package"
"$(BDS)\\Bin\\aspdelphiide90.bpl"="ASP.NET IDE Package List Manager"
"$(BDS)\\Bin\\cside90.bpl"="CSharp IDE Personality"
"$(BDS)\\Bin\\delphidotnetide90.bpl"="Delphi for .NET IDE Personality"
"$(BDS)\\Bin\\dotnetcoreide90.bpl"=".NET Core IDE Package"
"$(BDS)\\Bin\\scide90.bpl"="Visual Studio Converter IDE Package"
"$(BDS)\\Bin\\vcldotnetdesignide90.bpl"="VCL for .NET designer IDE Package"
"$(BDS)\\Bin\\dotnetdebugide90.bpl"="IDE Debugger Package"

Note the registry branch is Software\Borland\W32\3.0\ - not the default of Software\Borland\BDS\3.0\; this is of course after having created my own configuration branch using the command line dodge to run BDS with -rW32.
I now have my isolated config settings for pure win32 development.

Losing any startup of .NET makes a big difference to performance (and sometimes stability), and I find significantly increases the odds I'lll just click on the icon for some retro VCL fun...

0 comments: