473,395 Members | 1,681 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Delphi 2 CSharp conversion

Hi,

I am evaluating various alternatives of converting Delphi (Ver 4.0) screens
to C# screens. Are there any tools available for such conversion? if yes how
much conversion do they achieve? The number of screens to be converted are
huge, we are aiming minimum regression impact.

What could be the best approach?

Currently the option of Delphi.Net is ruled out.

Thanks in advance,
Sanjay Kedare
Nov 17 '05 #1
7 6475
Sanjay,
I am evaluating various alternatives of converting Delphi (Ver 4.0)
screens
to C# screens. Are there any tools available for such conversion? if yes
how
much conversion do they achieve?
Unfortunately I'm not aware of any such tools, but Google might be more
knowledgeable. Anyway, should such a tool exist, I wouldn't expect too much
from it.

Yes, an automatic conversion is possible to some extent, but in real life
the situation probably is different. If your Delphi VCL forms would not
contain any code (i.e. they would be just "screens", which is highly
unlikely), then such tools might work, but even in that case only for simple
components like buttons and text boxes.

Although many VCL components map almost one-to-one to C# WinForms components
(thanks to the common architect behind both of the products), there are
things you just cannot convert automatically. Take databases for example --
the whole database architecture in Delphi and C# (ADO.NET) is different. So
converting a TTable to a DataSet mechanically just wouldn't make sense.
What could be the best approach?


I'm afraid there isn't a simple solution to this problem. I suggest you try
automated tools first (if you can find such), but there is still manual work
that needs to be done. As you say the number of forms you have to convert is
huge, I believe the amount work you need to do is also very large.

Hope this helps nonetheless. All the best with your quest!

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Nov 17 '05 #2
Delphi 4 is by now an ancient version.

But... A lot of Borland's stuff is semi backwards
compatible, so if you can get a copy of Delphi 8,
which supports C# and Delphi, you may be able
to finesse the "conversion".

http://www.borland.com/us/products/delphi/index.html

--
Grace + Peace,
Peter N Roth
Engineering Objects International
http://engineeringobjects.com
Home of Matrix.NET
"Jani Järvinen [MVP]" <ja***@removethis.dystopia.fi> wrote in message
news:Og**************@tk2msftngp13.phx.gbl...
Sanjay,
I am evaluating various alternatives of converting Delphi (Ver 4.0)
screens
to C# screens. Are there any tools available for such conversion? if yes
how
much conversion do they achieve?


Unfortunately I'm not aware of any such tools, but Google might be more
knowledgeable. Anyway, should such a tool exist, I wouldn't expect too
much from it.

Yes, an automatic conversion is possible to some extent, but in real life
the situation probably is different. If your Delphi VCL forms would not
contain any code (i.e. they would be just "screens", which is highly
unlikely), then such tools might work, but even in that case only for
simple components like buttons and text boxes.

Although many VCL components map almost one-to-one to C# WinForms
components (thanks to the common architect behind both of the products),
there are things you just cannot convert automatically. Take databases for
example -- the whole database architecture in Delphi and C# (ADO.NET) is
different. So converting a TTable to a DataSet mechanically just wouldn't
make sense.
What could be the best approach?


I'm afraid there isn't a simple solution to this problem. I suggest you
try automated tools first (if you can find such), but there is still
manual work that needs to be done. As you say the number of forms you have
to convert is huge, I believe the amount work you need to do is also very
large.

Hope this helps nonetheless. All the best with your quest!

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/

Nov 17 '05 #3
It's a manual approach. Open the old project in Delphi, and the new project
in VS, then find the compatible components from the VS toolbox to drop on
the new forms. If you have a lot of forms, you could probably automate it a
bit if your Delphi DFMs are text. The C# form resource file is XML, so you
could build the XML from the DFM.

--
Floyd

"Sanjay Kedare" <Sa**********@discussions.microsoft.com> wrote in message
news:7A**********************************@microsof t.com...
Hi,

I am evaluating various alternatives of converting Delphi (Ver 4.0)
screens
to C# screens. Are there any tools available for such conversion? if yes
how
much conversion do they achieve? The number of screens to be converted are
huge, we are aiming minimum regression impact.

What could be the best approach?

Currently the option of Delphi.Net is ruled out.

Thanks in advance,
Sanjay Kedare

Nov 17 '05 #4
Peter,
A lot of Borland's stuff is semi backwards
compatible, so if you can get a copy of Delphi 8,
which supports C# and Delphi, you may be able
to finesse the "conversion".


It is true that Delphi 8 had support for both C# and Delphi, but that just
won't help. Having support for two languages in the product doesn't mean
that Delphi 8 could convert the project from one language to another.

Besides, Delphi 8 was a bad version in my opinion. Okay, it did the job, but
Delphi 2005 (the latest version presently) does the same work and more much
better. Plus, it is a lot easier to get than Delphi 8 which is obsolete by
now.

If the easiest conversion path would be an option for Sanjay, s/he would get
Delphi 2005, and convert the VCL project to a VCL.NET one. But if C# is the
way to go, then we are out of luck.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Nov 17 '05 #5
Thank you all for your inputs, they have given me a good headstart to look
out for a possible option.

Regards,
Sanjay Kedare

"Jani Järvinen [MVP]" wrote:
Peter,
A lot of Borland's stuff is semi backwards
compatible, so if you can get a copy of Delphi 8,
which supports C# and Delphi, you may be able
to finesse the "conversion".


It is true that Delphi 8 had support for both C# and Delphi, but that just
won't help. Having support for two languages in the product doesn't mean
that Delphi 8 could convert the project from one language to another.

Besides, Delphi 8 was a bad version in my opinion. Okay, it did the job, but
Delphi 2005 (the latest version presently) does the same work and more much
better. Plus, it is a lot easier to get than Delphi 8 which is obsolete by
now.

If the easiest conversion path would be an option for Sanjay, s/he would get
Delphi 2005, and convert the VCL project to a VCL.NET one. But if C# is the
way to go, then we are out of luck.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/

Nov 17 '05 #6
"=?Utf-8?B?U2FuamF5IEtlZGFyZQ==?="
<Sa**********@discussions.microsoft.com> wrote in
news:7A**********************************@microsof t.com:
I am evaluating various alternatives of converting Delphi (Ver 4.0)
screens to C# screens. Are there any tools available for such
conversion? if yes how much conversion do they achieve? The number of


There is a Delphi to C# convertor, but I dont think it does forms.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Develop ASP.NET applications easier and in less time:
http://www.atozed.com/IntraWeb/
Nov 17 '05 #7
Hi Jani -

I see at the moment 12 copies of D8 available on ebay
from $125 up, and 9 copies of D2005 from $134.

The point is, if one can compile existing [Delphi] code
then the conversion to yet another language is unnecessary.
That's what i meant by 'finesse'.
--
Grace + Peace,
Peter N Roth
Engineering Objects International
http://engineeringobjects.com
Home of Matrix.NET
"Jani Järvinen [MVP]" <ja***@removethis.dystopia.fi> wrote in message
news:eZ**************@tk2msftngp13.phx.gbl...
Peter,
A lot of Borland's stuff is semi backwards
compatible, so if you can get a copy of Delphi 8,
which supports C# and Delphi, you may be able
to finesse the "conversion".


It is true that Delphi 8 had support for both C# and Delphi, but that just
won't help. Having support for two languages in the product doesn't mean
that Delphi 8 could convert the project from one language to another.

Besides, Delphi 8 was a bad version in my opinion. Okay, it did the job,
but Delphi 2005 (the latest version presently) does the same work and more
much better. Plus, it is a lot easier to get than Delphi 8 which is
obsolete by now.

If the easiest conversion path would be an option for Sanjay, s/he would
get Delphi 2005, and convert the VCL project to a VCL.NET one. But if C#
is the way to go, then we are out of luck.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/

Nov 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: ann | last post by:
could you please give me few information about migration from delphi applications to visual studio. net? thank you, ann
10
by: Arda Han | last post by:
I am migrating my some applications from Delphi to C#. But... Yes But I don't know C# professionally. I am using DLL in delphi like this : ..... const RFID_103_485IO = 'Cihaz.dll'; ...
1
by: Piotr Nabielec | last post by:
Hi, I have very big problem with importing delphi dll into C# project... I got a Velleman K8000 card with k8d.dll that makes all communication for me. Now I'm trying to import it into C#, but I...
9
by: Gclinton | last post by:
I'm looking for a comparsion of C# to Delphi .net. My company is about to begin the process of reengineering a Delphi tightly coupled win32 app and a Older Java webclient that uses JSP over to an...
21
by: matko | last post by:
As far as I can see, there is no similar way of replicating the following Delphi-code in C#... Is that true? type IntRange = -5..5; CharRange = 'a'..'z'; TColors = (Red, White, Green, Blue,...
2
by: Mel Weaver | last post by:
Hello, I looking for different ideas on how to convert this delphi code to c#, mostly the constant array. procedure PhysDmgSymbol(sym : string; yr: integer); type d = record s : String; r :...
3
by: Anoop | last post by:
Hi All, I have a GUI module written in Delphi32. There is another main application written in CSharp.Net. I want to call the delphi GUI Form from with in CSharp.Net Code. The .Net application will...
0
by: Alberto Salvati | last post by:
Hi, all. I'm a delphi developer who is working on a very old delphi application that uses db2v7 via ADO (Mdac). I know that v7 is very, very old, but at this moment, we cant' upgrade to a...
0
by: BornTOCode | last post by:
Hello, I am attempting to call a (Delphi) win32 DLL from a Delphi.Net webservice. I am using a slightly modified version of the hello world webservice that comes with Delphi 2006. The DLL...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.