Can we call .net(2.0) dll from Delphi 5 application
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.
Take a look at http://www.managed-vcl.com/ I have been working with this component and it is really easy to use and very fast. It worked on all assemblies I have tested so far.
Have a look at CrossTalk.
精彩评论