Can we call a dll built in .Net2.0 from Delphi 5 windows application. If yes, how.
You could expose this .NET assembly as COM object using the regasm.exe tool:
regasm.exe /tlb /codebase Foo.dll
For this to work your assembly (or the type you are willing to expose as COM object) needs to be marked with the [ComVisible(true)]
attribute.
Then you could consume it as you would consume a normal COM object from Delphi: by importing the type library.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With