Accessing cSharp dll from Delphi XE2 service application

1920x1080, Windows 7 in vmWare virtual Machine.

I ran through the install screens again and didn’t see anything about VS integration…

as I understand, you have delphi in vmware and VisualStudio on host ? is it correct?

No, I have delphi in vmware, we do not have visual studio installed as we are a delphi shop.

I see solution for your issue as

  • C# dll
  • Hydra for .NET wrapper that consumes above .dll and imports dll methods via IHYCrossPlatformInterface interface.
  • Hydra Delphi host that consumes Hydra for .NET wrapper.

nowadays you have C# dll and Hydra Delphi host.
for creating Hydra for .NET wrapper you need to have Visual Studio where Hydra for .NET should be installed.

Ok, but I don’t have the source for the dll. How would that work?

.NET code can call methods of your C# dll even you have no source of that C# dll.
so you create own .NET wrapper library that exports methods of C# dll via hydra interfaces.
Delphi code can call methods of your wrapper library what will translate call to C# dll.

by other words, you need to create an additional layer which accepts delphi calls and will call methods of C# dll.