Hi All

Hi All,

I have a need to use .Net managed code in Delphi win32 application. I am currently using Delphi 2007. As far as I know, we cannot call managed code from within Windows Application written in Delphi. We can write wrapper in .Net to expose the managed part or make the .net managed code exposed to COM and call that COM dll.

Does any one see any direct way to call .Net assembly without modifying any of its code in .Net? Does latest version of Delphi supports calling managed code for Win32 application ?

Thanks in advance.

Comments

  1. Hi !
    May be Atozed CrossTalk feets your need
    Andry

    ReplyDelete
  2. Thanks RAFILOBERA Andry.

    While hunting for different solutions, I came across Cross Talk library however its 3rd party library and I am trying to find any out of the box solution. Cross Talk can be secondary option though.

    I can migrate to latest Delphi version if it supports calling managed code. Do you know if Delphi XE6 supports call to managed code from Win32 application ?

    ReplyDelete
  3. Any application can host a .NET assembly.

    http://msdn.microsoft.com/en-us/library/ms404385(v=vs.110).aspx

    There are several third party libraries that have done the grunt work already. RemObjects Hydra is one. Managed VCL is another. I believe the JEDI library also contains some classes for doing this.

    In my experience you may still wind up needing to modify or wrap the assembly regardless. This is especially true if the assembly uses generics that you need to access.

    ReplyDelete
  4. This is a very useful information. Thanks Kenneth Cochran.

    ReplyDelete

Post a Comment