How delphi7 access C# .net managed dll ?
i'm trying to access some DLL that compiled in c# and they are not those old style DLL. ( i dont have source for those DLL)
i did tried to search online but they are confusing. i guess there is some limitation even if get to access it with D7 ..
thanks.
@AngryHacker, For what you have suggested to be true, the .NET Assembly needs to be marked with the ComVisibleAttribute ( Register for COM Interop option enabled), and expose each function to COM using the [ComVisible(true)].
If you are trying to use a third party assembly (which you did not write) you have to check with the vendor whether that assembly can be used through COM.
Also the assembly does NOT need to be strong named to be accessible via COM.
If you do not want to go the COM way, check out CrossTalk for Delphi : http://www.atozed.com/CrossTalk/Docs/index.EN.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With