2

I have a dll developed in C Sharp. How can I make it usable in other languages, such as PHP or Delphi?

I cannot find any solution to this problem yet. Isn't there any easy way of doing this?

2 Answers2

9

If Delphi can understand COM, then you can make a COM wrapper around the .NET DLL.

I am doing this now for an older IDE which doesn't understand .NET, but it understands COM so I am able to use the latest .NET features in my older applications.

1

In addition to COM, you could try these (from my Delphi Win32 to WCF answer) for Delphi Win32:

The last one might be the real one you are after.

For PHP it is a different story;

  • PHP might run on a non-Windows box,
  • there are .NET implementations of PHP that would allow for direct linking of your C# assembly DLL

--jeroen

Community
  • 1
  • 1
Jeroen Wiert Pluimers
  • 23,965
  • 9
  • 74
  • 154