Recent

Author Topic: tool to convert code from Delphi to C#  (Read 28860 times)

mkamoski

  • Newbie
  • Posts: 2
tool to convert code from Delphi to C#
« on: October 21, 2013, 10:14:35 pm »
Is there any tool to convert code from Delphi to C#?

I am tyring the program "Convert Delphi To C#" and it seems broken, and BTW I found it here...

http://sourceforge.net/projects/delphi2csharp/


I am trying the program "DelphiToCS" and it seems to want a ".drpoj" or a ".dpr" file and Lazarus is only giving me ".lpr" files so that is a bust too, and BTW I found that too here...

http://www.netcoole.com/download.htm

(FWIW, I am a new contractor on a project converting a large Delphi app to C#, it is about 1/2 way done, and so I just have to do it.)

So do you have any hints or suggestions how to do this conversion?

Please advise.

Thanks.

-- Mark Kamoski



Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: tool to convert code from Delphi to C#
« Reply #1 on: October 22, 2013, 09:23:26 am »
Shouldn't you ask in C# forum? If the other way around or Delphi to Lazarus, it might fit here.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12901
  • FPC developer.
Re: tool to convert code from Delphi to C#
« Reply #2 on: October 22, 2013, 09:51:21 am »
Aside from that, if you don't have the skill to brush away the difference between Lazarus and Delphi, I doubt it will be easy to deal with the fallout of the converter.

There are specialized services for source 2 source conversion. For a reason.

sam707

  • Guest
Re: tool to convert code from Delphi to C#
« Reply #3 on: October 28, 2013, 11:14:47 pm »
why convert a ferrari to a skoda ?  :D

better for you to learn to drive the ferrari !

this was my philo time ...
« Last Edit: October 28, 2013, 11:25:55 pm by sam707 »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12901
  • FPC developer.
Re: tool to convert code from Delphi to C#
« Reply #4 on: October 29, 2013, 09:41:29 am »
LPR's are nearly the same as dprs btw (one or two FPC specific directives). The different name is for sake of file associations.

There is no way to export a Lazarus project as Delphi, but the differences are mostly trivial. Keep in mind that most source 2 source projects are only half automated at best, specially the free ones. You really need to know what you are doing, it is not a "convert" one button press conversion.

 

TinyPortal © 2005-2018