Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-08

Converting C# GUI to Lazarus

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ik

Hello List,

I've been evangelisting FPC and Lazarus for a lot of time now, and today on the biggest annual open source event over here ( http://august.penguin.org.il/) I was approached by a person that wish to convert C# application to Lazarus, but he can not find any tools that can help him do so (finally people try it instead of saying "it's pascal, i'm not interested").
It's a commercial application at the company he is working at.

So my question is, is there a known tool or an easy way to do it ?

Thanks,
Ido

LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110812/dd712f5f/attachment.html>

Reply by email

Hans-Peter Diettrich
to ik
Show quoted text 11 lines
Hello List, I've been evangelisting FPC and Lazarus for a lot of time now, and today on the biggest annual open source event over here (http://august.penguin.org.il/) I was approached by a person that wish to convert C# application to Lazarus, but he can not find any tools that can help him do so (finally people try it instead of saying "it's pascal, i'm not interested"). It's a commercial application at the company he is working at. So my question is, is there a known tool or an easy way to do it ?

Automatic conversion won't work, I fear, due to substancial differences of the object models in CLR and FCL/LCL (garbage collection...), not to mention the very different LCL itself.

A conversion to Delphi.Prism looks feasable to me, because it only requires syntactical changes to the source code. But FPC/Lazarus do not support a .NET target.

DoDi

Reply by email

Graeme Geldenhuys
to ik: I've been evangelisting FPC and Lazarus for a lot of time now, and today on the biggest…

2011/8/12 ik :

So my question is, is there a known tool or an easy way to do it ?

Yeah, employ a lot of skilled developers. ;-)

On a serious note:
Hans-Peter hit the nail on the head. The underlaying languages, frameworks and due to GC in .NET makes this near impossible. The only sane way to guarantee a working app in the end, would be a rewrite.

I had to do the exact same thing in my current job. We rewrote a few VB6 apps to FPC+LCL, then later to fpGUI. For obvious reasons the latter was not nearly as much work as the first.

Regards, ? - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email