I would like to upgrade my Delphi version but cannot because my current project depends on older, no longer supported components. Is it possible to move these components to a newer release of Delphi?
CodePudding user response:
Ability to port older components to newer Delphi versions can depend on several things:
- Do you have source code of these components or only pre-built packages? If it is the latter then I'm afraid you are out of luck. Pre-built packages are usually limited to specific compiler version they were built for. But if you do have full source code then porting to newer Delphi version becomes a viable option.
- Do these components heavily rely on libraries that ship with Delphi? If they do porting to a newer Delphi version might be quite difficult especially if those libraries have seen significant changes over the years.
- Does the source code of these components heavily rely on assembler language or pointer math? If it does then adding support for 64 bit versions will be very difficult due to 64 bit having its own assembler language and different size of pointers.
So in short if you have full source code for these components the answer is YES.
But is it worth it? That depends on how many code refactoring would be required. Often author drop support for older components simply because porting to newer Delphi versions would require a lot of work that it is worth for them.