I’ve got an old project written in Delphi 4. I’m looking for a way to:
- use that code with minimal changes from within .NET
- use other .NET assemblies from that Delphi code
- use Visual Studio to work on the solution which will contain Delphi project and C# projects.
Is that possible? What will i need for that?
Thanks
Unfortunately, no.
CodeGear never supported Delphi for .NET in Visual Studio in any version, and VCL for .NET died after Delphi 2007.
The new ‘Delphi’ .NET solution is Delphi Prism, which does work in Visual Studio; unfortunately, it isn’t backwardly compatible with Delphi code. Rem Objects (the actual owners of the Prism compiler, formerly known as Oxygene) has made available a utility application that attempts to convert the syntax differences automatically, but I haven’t tried it on anything yet.
You might be able to reuse some of your old Delphi 4 code by converting what you can to ActiveX controls and using COM to make them available in .NET. Then you can use C# in Visual Studio (along with Prism, if you want or need it) to do what you need.