Call C# dll from Delphi

You may have more luck skipping the COM part by using my project template for unmanaged exports class MyDllClass { [DllExport] static int MyDllMethod(int i) { MessageBox.Show(“The number is ” + i.ToString()); return i + 2; } } In Delphi, you’d import it like so: function MyDllMethod(i : Integer) : Integer; stdcall; extern ‘YourAssembly.dll’; I … Read more