New context menu shell extension to rename Delphi / Pascal units.
Published 21 December 10 1:9 PM | Phil Gilmore
12/21/2010 Phil Gilmore Renaming a Pascal file isn’t as simple as pressing F2 in Windows Explorer and giving it a new name.  The name of the unit inside the file’s content must match the file’s name or the compiler can’t find it when you build your...
Anonymous Methods and Closures in Delphi 2010
Published 17 June 10 5:9 PM | Phil Gilmore
06/17/2010 Phil Gilmore What are anonymous methods? Anonymous methods are a new language feature introduced in Delphi 2010.   To describe them in one sentence is unfair, but I'll try.  They are methods which are defined inline (you might...
VDUG: Delphi Generics Presentation available for download
Published 19 May 10 1:45 PM | Phil Gilmore
05/19/2010 Phil Gilmore I presented Delphi Generics for the May Virtual Delphi User Group.  A recording with tips ‘n tricks by Robert Love is available as a streaming video(Flash) or as a full download (MP4) at the VDUG website:   http://video...
To Ribbon or not to Ribbon? Considering the Microsoft Fluent Interface.
Published 25 March 10 3:30 PM | Phil Gilmore
03/24/2010, updated 04/07/2010 Phil Gilmore I have a friend who is obsessed with the Ribbon interface found in the latest Microsoft Office suite.  He has been heard asking “To Ribbon or not to Ribbon”.  The answer should be, as always, whatever...
Using Generics in Delphi
Published 23 December 9 3:55 PM | Phil Gilmore
Phil Gilmore 12/23/2009, revised 02/25/2010 Introduction Generics were introduced in Delphi in version 2009.  They were implemented as first class citizens in the Object Pascal language.  They work splendidly and support all the features you...
Getting started with MyGeneration, a primer and tutorial
Published 3 December 9 5:36 PM | Phil Gilmore
12/03/2009 Phil Gilmore About MyGeneration MyGeneration is a developer's code-generation tool that gives you access to your database’s schema.  It is useful for building O/RM entity classes based on your database schema. MyGeneration is mature, free...
CodeRush Xpress for Visual Studio 2008 version 3.2.1 cheat sheet
Published 19 June 9 12:37 PM | Phil Gilmore
06/18/2009, Phil Gilmore I've been a CodeRush fan since I bought my first copy from Eagle Software for Delphi many years ago. I recently downloaded CodeRush Xpress for Visual Studio 2008, version 3.2.1. I have constructed a cheat sheet for it which is...
How to support file uploads in ASP.Net MVC
Published 3 June 9 4:57 PM | Phil Gilmore
06/03/2009, Phil Gilmore ASP.NET MVC can support file uploads. You need two components to support file uploads. A form in your markup (view) which contains an <input type="file"...> tag and which has the proper enctype attribute. A controller action...
Building data sequences in C#
Published 19 May 9 2:3 PM | Phil Gilmore
05/19/2009, Phil Gilmore Beyond the overlap they share with enumerable collections, sequences are mostly unsupported in C#. A notable exception are some of the static methods of the Enumerable class. Check them out. This support is all I need for most...
Filed under: , , ,
Universal method chaining in C# 3.5
Published 7 April 9 5:32 PM | Phil Gilmore
04/07/2009 Phil Gilmore Here I will present a solution that provides method chaining in C# 3.5. I hope it helps you and I hope that we will see it added as part of the next update to the .NET. Is it really a big deal? I've been working more and more with...
Reusable Fixture in C#
Published 12 March 9 2:23 PM | Phil Gilmore
Phil Gilmore I was recently working on an application that had had 2 problems. I found that at one level the code repeats itself many times over. Every method in the business layer used the same try / catch / catch structure to wrap calls to the data...
Advanced merging - manual alignment with KDIFF3
Published 23 February 9 2:41 PM | Phil Gilmore
Phil Gilmore Not all merge programs are equal. Where possible, it's nice to have the merge program automatically resolve any conflicts that it can before forcing you to make any manual merge selections. Of the tools that I've used, KDIFF3 always does...
Lambda expressions tutorial for C# and Visual Studio 2008
Published 9 January 9 8:31 PM | Phil Gilmore
Phil Gilmore Lambda expressions are one of the cool new features of .NET 3.5 and are available in the C# compiler inside Visual Studio 2008. They can make code more readable and permit the framework to provide some really neat functionality when mixed...
Regular expression for email addresses (replacing the Visual Studio 2008 default).
Published 9 January 9 11:19 AM | Phil Gilmore
Phil Gilmore I recently had a user report that they couldn't register on my client's site. The site's registration page reported that their email address was invalid. The email address was indeed strange but valid nonetheless. We were using a regular...
Filed under:
FreePascal Error: Illegal parameter: -Opentium3
Published 5 January 9 11:44 AM | Phil Gilmore
Phil Gilmore I was trying to build an existing Delphi DLL as a 64-bit DLL using FreePascal 2.2.2. I opened the .dpr file which is as simple as a DLL project can get. I clicked Compile , then Build . The build failed on line 0 with the error "Illegal parameter...
More Posts Next page »