Sebastian
Sebastian

Reputation: 972

Upgrade Delphi XE to newer version

I have to update a Delphi XE installation for a project to a newer version of Delphi but I don't have much experience with Delphi, the problem is there are plenty of old packages and components in there. When I install a new version did I have to install all components again (if it possible to install it in this new version) or is it something like an update to my old installation and all installed stuff is now in the new version also?

Upvotes: 1

Views: 907

Answers (2)

fpiette
fpiette

Reputation: 12322

Updating a Delphi XE application to a newer Delphi is usually quite easy. The only serious issue could be third party components which you must install in the newer Delphi version. Check with each component vendor that a version exists for your target Delphi version.

I always strongly recommand to NOT use any third party component that has no source available. Also don't buy any third party component using a DLL, OCX or other external binary object.

When you buy a third party component, always buy the source code with it. Then throw away any pre-build package or dcu and recompile everything before any serious use. That way you'll be sure to have all required source code and work with that source code.

Once you have the source code, it becomes much easier to port to the next Delphi version. Usually there is just nothing to change (There was only one notable exception in the past between Delphi 2007 and Delphi 2010 when Unicode string were introduced).

When there is something to change, it is usually only the name of a "used" unit. Somtimes Embarcadero move one class from a unit to another one. Sometimes, you have to change a $IFDEF which specify a Delphi version. Look at {$IFDEF VER180} and similar to adapt to you current version (See the online help for such symbol).

And if you still have issues, then ask here...

Upvotes: 4

SilverWarior
SilverWarior

Reputation: 8386

Upgrading to newer version of Delphi might not be a trivial task.

First problem you will run into are Thid Party Components.

If you don't own the souce code for them it means that they come with precompiled packages and these packages unfortunately arent compatible between different Delphi versions.

If you do have source code for them you might be able to recompile them on newer Delphi versions but this might require you to do some code changes.

So I strongly recomend you first check to see if there are updated versions of these components available that support the Delphi version to which you are planning to upgrade.

For instance if your application relies on BDE (Borland Database Engine) that shipped with older versions of Delphi you Will be forced to do Quite some changes to properly set up the FireDac database framework that ships with newer delphi versions.

Upvotes: 3

Related Questions