Recent

Author Topic: Any hints to use Lazarus component in Delphi?  (Read 2965 times)

v.denis

  • Guest
Any hints to use Lazarus component in Delphi?
« on: March 04, 2015, 01:24:03 pm »
I had not time to research it myself yet. But maybe someone have any thoughts on it.

I'd like to use Lazarus Synedit and Object Inspector in Delphi (doing small code editor). Lazarus Synedit is very advanced and I see no sense to use Delphi one if I could get Lazarus one.

Using source code is problematic I think, because LCL vs VCL, and code differences.

Maybe some way using it via DLL? I want it on Windows only.
« Last Edit: March 04, 2015, 01:45:42 pm by v.denis »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: Any hints to use Lazarus component in Delphi?
« Reply #1 on: March 04, 2015, 01:50:27 pm »
Any practical reuse must be done on sourcelevel. 

Even if components can be in DLLs (which is already doubtful, and why "packages" exist in Delphi) they must be generated by same compiler and -version.

v.denis

  • Guest
Re: Any hints to use Lazarus component in Delphi?
« Reply #2 on: March 04, 2015, 01:52:55 pm »
Yeah, I agree on packages.

I've thought of some COM/OLE-like export, though have not done serious research yet.
« Last Edit: March 04, 2015, 01:56:50 pm by v.denis »

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Any hints to use Lazarus component in Delphi?
« Reply #3 on: March 04, 2015, 02:52:34 pm »
I'd like to use Lazarus Synedit and Object Inspector in Delphi (doing small code editor).

Why do you want to use Delphi instead of Lazarus for this project?
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

v.denis

  • Guest
Re: Any hints to use Lazarus component in Delphi?
« Reply #4 on: March 04, 2015, 03:06:05 pm »
I have existing Delphi project which uses Synedit. Rewriting it to Lazarus is too much work just to use advanced Synedit.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Any hints to use Lazarus component in Delphi?
« Reply #5 on: March 04, 2015, 03:34:06 pm »
I have existing Delphi project which uses Synedit. Rewriting it to Lazarus is too much work just to use advanced Synedit.

You don't need to rewrite it. LCL is more or less compatible with VCL, you can port your project with small changes. If you don't want to make it cross-platform, your chances for success are high.
Lazarus Tools menu has a Delphi converter. Did you try it? What problems you faced?
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018