Link to home
Start Free TrialLog in
Avatar of John500
John500Flag for United States of America

asked on

Best way to convert Delphi 6 code to C#

As the title says, I'm looking to convert as much Delphi code to C# as possible.  

I realize there are some tools that will convert whole projects.  I'm thinking this may not be the best way.  Maybe file by file or function by function.  I don't need the designer code converted although having the control names identical to the new C# designer would probably be helpful.

Control names aside, what is considered to be the best solution for people needing such conversions?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of John500

ASKER

Well, thanks to both of you.  I didn't know whether such a tool would at least give me some insight but I can see now it wouldn't be good.

We're talking about a Form Application that has six tabs numerous text boxes, a menustrip, tool strip etc.  The folks that asked me to convert it say it should take about a month.  I don't know.  

Just started working at this place.  I was hoping to utilize some code reuse because they have already converted numerous similar applications.  Nobody gives code away these days except here... or I keep getting the wrong jobs.
You can think of code reuse if the applications where designed as forms in a .exe and most of the functional code in dlls.

You could then rewrite the forms in .NET and simply connect to the old dlls. This works pretty well if the dlls were designed properly.

But if the applications were big .exe that contains everything, a conversion is not something I would consider.
Avatar of John500

ASKER

Thanks again!