2

I'm making a project in C# and I want to use Unmanaged Exports and later to use it in Delphi. So can anyone explain me, how does Unmanaged Exports works, then how to use/import in Delphi. I'm using Visual Studio 2010 Express, on Windows 7 64 bit

4

2 回答 2

2

Brian Long写了一篇关于 Inverse P/Invoke从 Delphi Win32 调用托管 C# 代码的经典文章。

我不确定我会使用这种技术,但有可能:-)

——杰伦

于 2010-06-29T20:43:55.983 回答
2

我听到的关于非托管导出的最佳描述是“反向 PInvoke”。这些仅限于标量类型,但允许您从本机代码使用托管程序集,而无需 COM 互操作的开销。

我还没有尝试过,但是你可以在C# 中通过一些调整来做到这一点。

作为替代方案,Delphi Prism 开箱即用地支持此功能

于 2010-06-29T13:44:38.987 回答