We have a COM dll written in delphi in our bin folder that call 2 static dll in the system32 folder (also COM in delphi).
My question is, how can we transform that dll in delphi into an interop dll ? Or is there any better way to do this ?
Thanks !
We have a COM dll written in delphi in our bin folder that call 2 static dll in the system32 folder (also COM in delphi).
My question is, how can we transform that dll in delphi into an interop dll ? Or is there any better way to do this ?
Thanks !
.net consumes COM objects with ease. There's no need for interop, just import the type libraries and off you go!
MSDN has a comprehensive tutorial.
struct) can't be understood from the Delphi side. The VT_RECORD type is not handle by Delphi yet. You should rely on low-level types like Delphi string double integer.@David: I think that the import in dotNET is ultimately using InterOp. That said, as long as all the COM interface contracts are respected, a Delphi COM object is just like a C++, ATL object.
Andrea