开发者

Can we call .net(2.0) dll from Delphi 5 application

开发者 https://www.devze.com 2023-02-05 11:27 出处:网络
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:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消