Search code examples
c#.netdelphiintegrationdelphi-6

C# and Delphi integration


Currently we have couple projects that are written in Delphi 6. Because of specific components that use in these projects (components also written in Delphi 6) it is not easy to convert it in newer version.

As I prefer .NET development and our new products are developed in .NET, I would like to develop new functionalities using these technologies. C# will be programming language.

My question is: How to integrate new functionalities developed in C# with current code in Delphi? Is this good idea at all and what can be possible issues? If someone have similar experience it would be to hear advantages and disadvantages.

I heard for integration in way to develop .dll with C# and use it from Delphi code.

TnX in advance!

Nemanja


Solution

  • You can use COM (ActiveX) both ways.

    So Yes, you can make a DLL in C# and mark it as COM-visible and import it into Delphi.

    But you cannot use simple (not COM) DLLs this way.