开发者

How to build an interop with a COM class (written in delphi)

开发者 https://www.devze.com 2023-03-09 21:04 出处:网络
We hav开发者_运维技巧e a COM dll written in delphi in our bin folder that call 2 static dll in the system32 folder (also COM in delphi).

We hav开发者_运维技巧e 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.


@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

0

精彩评论

暂无评论...
验证码 换一张
取 消