Converting existing applications from Delphi 5 to Delphi 2009

Posted on 2009-02-11
Last Modified: 2013-11-23
I have been using Delphi 5 for many years. I stuck with it because it worked pretty well and also because my company bought several libraries for it which I have used in my programs. So I was rather locked in. However they have now bought Delphi 2009 (still unused) which leads to a question for the Delphi experts.

What are the main hurdles I will face if I want to convert my Delphi 5 applications to run on Delphi 2009 (ignoring my 3rd Party libraries. Some are no longer supported, some can be upgraded).
Does anyone know of any good upgrade guides around to guide me by someone who has already taken this path!
Note: I have no experience at all on anything later than Delphi 5!

Question by:WinRat
    LVL 19

    Accepted Solution

    Most of the times upgrading a project isn't that hard using Delphi.
    Special thing about Delphi 2009 is that it became unicode, so you might get some troubles there, but it totally depends on what kind of application you are talking about. Can you tell something about this?

    I'd suggest you just give it a little time, see what you encounter. Big change you're done in a few hours.

    Author Closing Comment

    Hi MerijnB,

    Thanks for the comments I suppose you are right, just take a simple one to start with and work through it. if I get stuck I can always post on EE! I know nothing abut using Unicode. Are you forced to use it in D2009 or can one still use single-byte characters?

    Most of my apps are pretty simple utilities except for one big one which uses several commercial 3rd Party Libraries, Some of those libraries are no longer supported and I would have to find alternatives, and some we can purchase updates to D2009.

    I was hoping that someone would have developed some general guidelines e.g. certain components that were in D5 no longer appear in D2009 or more likely, some code has been moved to different or new units.

    In any event since no-one else answered I'll accept your answer thanks.
    LVL 19

    Expert Comment

    > I know nothing abut using Unicode. Are you forced to use it in D2009 or can one still use single-byte characters?

    You are not forced to use it, though you must realize that everywhere where you use string or char, Delphi 2009 will now use that as unicode chars.
    To use single-byte chars you'll have to use ansistring or ansichar explicitly. Though I'd advice you to use it when it's not in the way.

    For your components, you'll just have to go and see.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Eclipse for PHP 1 84
    Eclipse XML hightlightning 5 34
    Java Help 2 59
    Resharper CTRL+N: Differentiate between files with same name 2 36
    Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
    Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
    The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
    The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now