Using Delphi5 in a Delphi XE Environment

Is it possible to compile a Delphi5 project in a new XE environment without migration?

If you've been using the Delphi5 IDE for a long time, and frankly, it's old, unfriendly, and inflexible. I tried XE and was impressed, but I'm not interested in porting projects to newer versions of Delphi.

So is this possible? And if not, are there other development environments that support Delphi5?

+4
source share
4 answers

Unfortunately, this is not so - Delphi XE is unicode only. And there are no other IDEs. As for Delphi 5, this is a great version, and we still use it extensively. Try to find some add-ons and experts for Delphi 5 that will make development more comfortable. CodeRush, ModelMaker Explorer are commercial, and there were some free add-ons. Personally, I use ModelMaker Explorer for Delphi 5, which I bought many years ago.

+4
source

In our case, it took about 4-5 weeks to transfer our project from D7 to D2010. There are some good links where you can see which code should be changed and think about whether it is worth it in your case, the main difference is the Unicode problem.

For example, any code that processes or performs string pointer operations should be checked for Unicode compatibility. More specifically, any code that:

  • Assumes SizeOf (Char) is 1

  • Assumes the length of the string is equal to the number of bytes in the file string

  • Writes or reads strings from some persistent storage, or uses a string
    as a data buffer

View full article from Embarcadero

+2
source

If you buy XE, you are also entitled to older versions of the IDE (back to D7, IIRC). Delphi 2007 is almost as good an IDE as XE, and it will compile D5 code if you have a source with minor changes. (Generally, the need to add options to the uses clause is a major problem.)

+2
source

Andreas Hausladen has a Delphi plugin that offers this functionality (compile in the IDE using a different version of dcc32 than the native one for this IDE). It is called the IDE Compiler Plugin .

However, it is only available for Delphi 2007 and 2009. To be honest, I think you better support both versions of Delphi installed side by side.

+1
source

Source: https://habr.com/ru/post/1341102/


All Articles