消费在Delphi XE2 .NET程序集程序、Delphi、NET

2023-09-03 01:34:03 作者:把心藏好

我有一些在.NET和一些在Delphi中实现的业务逻辑。现在我计划升级到德尔福XE2。

I have some of the business logic implemented in .NET and some in Delphi. Now i am planning to upgrade to Delphi XE2.

难道我们必须从德尔福XE2?

Do we have any provision to consume .net assembly from Delphi XE2?

更新:我听到关于水润框架这使我们能够整合托管和非托管code。任何人都可以解释一下它与一个小的演示/ code段?

Update: I heard about Hydra framework which enable us to integrate managed and unmanaged code. Can anyone explain more about it with a small demo / code snippet?

更新:我试图在这个水润框架试用版几件事情。但是,它需要修改你的.NET程序集,以及创建接口,这样我们就可以绘制这个德尔福code。

Update: I have tried few things on Trial version of this Hydra Framework. But it requires to modify your .NET assembly as well to create interface so that we can map this with Delphi code.

有没有办法消耗.NET程序集,而无需修改呢?

Is there any way to consume .NET assembly without modifying it?

推荐答案

看一看 AToZed干扰,它可以直接使用.NET程序集,而无需使用COM互操作。

Have a look at AToZed CrossTalk, it can consume .NET assemblies directly without using COM interop.