Recent

Author Topic: Delphi Converter  (Read 2555 times)

Zath

  • Sr. Member
  • ****
  • Posts: 391
Delphi Converter
« on: November 20, 2013, 12:38:57 pm »
Does the converter see third party components ?
If so, would it attempt to create an equivalent or does it mark the section and move on ?
The reason behind the question is I have a game client with various components and wanted to see if Lazarus could be used to replace older Delphi files.
Thanks.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4575
  • I like bugs.
Re: Delphi Converter
« Reply #1 on: November 20, 2013, 02:15:54 pm »
Does the converter see third party components ?
If so, would it attempt to create an equivalent or does it mark the section and move on ?

It has 2 strategies for it:

1. Search from the project's sibling directories, meaning the other directories under its parent directory. If it finds a unit that is used by the project, it is also converted and added to project.
Many projects deliver their libraries that way.

2. Replace units, types and function calls with something else. There is a predefined list of replacements but the user can edit them in conversion settings dialog.
Unfortunately replacing 3rd party types with fallback types does not work very well because their properties are different. Often many properties are lost and the functionality changes.
« Last Edit: November 20, 2013, 02:19:59 pm by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Zath

  • Sr. Member
  • ****
  • Posts: 391
Re: Delphi Converter
« Reply #2 on: November 21, 2013, 01:10:13 pm »
Just what I wanted to know.
Thank you.

 

TinyPortal © 2005-2018